Skip to content

Clean up authentication  #406

Description

@Innders
  • Use RTK mutation instead of axios.
  • Set axios and RTK headers inside useLogin mutation.
  • Clean up naming convention for user slice.
  • Create a helper hook for checking for user auth.

https://redux-toolkit.js.org/rtk-query/usage/examples#authentication

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for Maintenance.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions