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

is authenticated middleware #6

Open
leognmotta opened this issue Sep 6, 2019 · 0 comments
Open

is authenticated middleware #6

leognmotta opened this issue Sep 6, 2019 · 0 comments

Comments

@leognmotta
Copy link

leognmotta commented Sep 6, 2019

I was having a lot difficult to implement social login with my app, and you have already helped a lot, thanks! and I have already prototyped my own version and it works!

But how would you recommend me to make a middleware to check if the access_token being sent from my frontend is valid?

I am aware about google tokeninfo route that returns some data if we send a valid access_token and facebook has the sema approach. would you recommend to validate the request using those routes or there is something else?

google route: /oauth2/v1/tokeninfo?access_token=accessToken
facebook route: /me?access_token=xxxxxxxxxxxxxxxxx
github: GET /applications/:client_id/tokens/:access_token

sorry if I sound like noob, but I am :D

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

No branches or pull requests

1 participant