Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JWT Authentication #2

Open
varun10sudhir opened this issue Sep 22, 2023 · 0 comments
Open

JWT Authentication #2

varun10sudhir opened this issue Sep 22, 2023 · 0 comments
Labels
medium solve-first This issue should be solved first as all other issues depend on this.

Comments

@varun10sudhir
Copy link
Collaborator

varun10sudhir commented Sep 22, 2023

As mentioned, the routes will have to be protected , we will need to add JWT authentication
The token needs to be in the request headers

If the token is not valid, return JSON saying it is invalid with the UnAuthorized status code

The token needs to be decoded and cross checked with the user_id of the user attempting to log in
If they match, access is granted

@IshaanKMathur IshaanKMathur added the solve-first This issue should be solved first as all other issues depend on this. label Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium solve-first This issue should be solved first as all other issues depend on this.
Projects
None yet
Development

No branches or pull requests

2 participants