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
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