unable to request userinfo #118
-
Hello, Thank you for this amazing platform for user management. I am following the web application example (in FastAPI) and modified the last part of it in the following way. Briefly, I am redirecting my webpage to Thanks,
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
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 |
Beta Was this translation helpful? Give feedback.
-
Hi @frankie567, just a quick follow-up question. Does Fief automatically saves the auth token on client side? Thanks |
Beta Was this translation helpful? Give feedback.
-
Got it. Thanks a lot. |
Beta Was this translation helpful? Give feedback.
When you call this route:
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?