Skip to content

is authenticated middleware #6

@leognmotta

Description

@leognmotta

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions