Skip to content

authenticate with token / refreshtoken from mobile app in webview #6592

Answered by Cantinaband
Cantinaband asked this question in Help
Discussion options

You must be logged in to vote

Pretty simple.

You can call /api/auth/callback/<auth_provider>?id_token=<idToken>&refresh=<refreshToken>&callbackUrl=<callbackUrl>

This triggers the next-auth jwt function. I checked the normal response from the auth-provider first to get the structure of the params. But that's it

See more here: https://next-auth.js.org/configuration/callbacks#jwt-callback

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@HermesDE
Comment options

Answer selected by Cantinaband
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
question Ask how to do something or how something works
4 participants
Converted from issue

This discussion was converted from issue #6579 on February 01, 2023 22:37.