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

JwtAuthAdded #55

Closed

Conversation

ayush25102001
Copy link
Contributor

ISSUE #48
Added a field i.e token array to the userModel which holds the tokens.
Created a dummy protected route /user to show the implementation.

-When the user registers the token gets added to the tokens array
t 1

-When the user logs in the token is added to the tokens array
t 2

-If no token/incorrect token is provided with the auth-token key in the header of the protected route then the user is denied
access of that route
t 3

Correct token provided and thus the user is able to access the protected route

t 4

Please review @khareyash05 sir

@netlify
Copy link

netlify bot commented Apr 3, 2022

Deploy Preview for hashide ready!

Name Link
🔨 Latest commit 43a4e4d
🔍 Latest deploy log https://app.netlify.com/sites/hashide/deploys/624a75379e32d70008a1c098
😎 Deploy Preview https://deploy-preview-55--hashide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Apr 3, 2022

Deploy Preview for hardcore-bardeen-855706 ready!

Name Link
🔨 Latest commit 43a4e4d
🔍 Latest deploy log https://app.netlify.com/sites/hardcore-bardeen-855706/deploys/624a7537415ab1000923ab25
😎 Deploy Preview https://deploy-preview-55--hardcore-bardeen-855706.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Collaborator

@irshadmd irshadmd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolve this error
image

@ayush25102001
Copy link
Contributor Author

@irshadmd sir, please review !!

Copy link
Collaborator

@irshadmd irshadmd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes look good but some checks are failing, since the master is changed try to take pull from master and then re-create PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants