F.Brown
F.Brown

Reputation: 45

Facebook iOS access_token authentication on NodeJS

I have an iOS application that allows users to login with Facebook (via the Facebook Swift SDK). This returns the an access token for the user, which is specific to that app.

The user's facebook access token is passed to my NodeJS API where its authenticity needs to be checked. How can I do this? Basically, I need to check that Facebook has given the user this access token specifically for use with my app.

Once this is done, I will just use my API's standard JWT access and refresh tokens to authenticate future requests.

Upvotes: 0

Views: 618

Answers (1)

Showard180
Showard180

Reputation: 435

You can use the Debug Token endpoint within the facebook api, which provides if the token is still valid and which application the token is valid for.

Upvotes: 0

Related Questions