Skip to content

Create token based authentication for React app #84

@amlannandy

Description

@amlannandy

Is your feature request related to a problem? Please describe.
As the react app is a separate application, login with flask_login doesn't persist with it while sending requests to other protected routes, resulting in an unauthorized error.

Describe the solution you'd like
On login, we can send an auth token to the user which will be stored on local storage and can then be used for accessing protected routes via the authorization header.

Describe alternatives you've considered
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions