You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Authjs doc described how to "Integrating with third-party backends"
Documentation say:
When logging in through a provider, you can use the received OAuth tokens to authenticate against a third-party API. These tokens can be used to authorize requests to backends that are supporting the corresponding provider.
Ok, for example, for Google provider I received access token , but CredentialsProvider doesn't have it.
Different providers (for example Google and Github) have different access tokens.
The link for "Further examples" in the documentation is broken
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In Authjs doc described how to "Integrating with third-party backends"
Documentation say:
Ok, for example, for Google provider I received access token , but CredentialsProvider doesn't have it.
Different providers (for example Google and Github) have different access tokens.
The link for "Further examples" in the documentation is broken
Let's say I have a server on express that has a rest api.
What is the easiest way to check the incoming request (in express) and make sure the user has the necessary permissions?
So far, I see two ways:
Release my access/refresh token for express and check it in express
make requests to express only from server side components
I appreciate any advice in advance :)
Beta Was this translation helpful? Give feedback.
All reactions