Skip to content

馃 How to return user data along with the token in /auth/callback JWT + Bearer? #1381

Closed Answered by frankie567
jd-solanki asked this question in Q&A
Discussion options

You must be logged in to vote

The thing is, the OAuth callback route is designed to return the response generated by the authentication backend's Transport, by calling the get_login_response method. Problem is this method only receives the token, not the user.

So, if you really want to do this, you would need to reimplement the callback endpoint to fit it to your needs:

async def callback(

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jd-solanki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants