Skip to content

unable to request userinfo #118

Answered by frankie567
Aakashagr asked this question in Q&A
Nov 28, 2022 · 3 comments · 7 replies
Discussion options

You must be logged in to vote

When you call this route:

@app.get("/userinfo")
async def userinfo(user: FiefUserInfo = Depends(auth.current_user())):
	return user

The server will expect you to provide a valid session cookie in the request. Otherwise, it'll automatically redirect you to the Fief auth page.

What is the nature of the app you are serving on localhost:8550? Is it a React app or something like that?

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@frankie567
Comment options

@Aakashagr
Comment options

@frankie567
Comment options

@Aakashagr
Comment options

@frankie567
Comment options

Answer selected by Aakashagr
Comment options

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

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
Q&A
Labels
None yet
2 participants