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
Hey all, I have a nicegui frontend built on a fastapi-users backend. When a user navigates the frontend, a method is needed to generate a jwt (from /auth/jwt/login) to access authorized fastapi routes and for a client side script.
The initial thought is for the client side script to take the JWT generated by the frontend from the browser cache (as a valid session will already be created). But, I'm not sure if this is recommended.
A second thought is to provide a /generateSession nicegui page to generate a JWT and let the user enter it manually into the script.
What is the best way to approach this problem?
Cross-posted this question to nicegui Q&A as well.
Thank-you.
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all, I have a nicegui frontend built on a fastapi-users backend. When a user navigates the frontend, a method is needed to generate a jwt (from /auth/jwt/login) to access authorized fastapi routes and for a client side script.
The initial thought is for the client side script to take the JWT generated by the frontend from the browser cache (as a valid session will already be created). But, I'm not sure if this is recommended.
A second thought is to provide a /generateSession nicegui page to generate a JWT and let the user enter it manually into the script.
What is the best way to approach this problem?
Cross-posted this question to nicegui Q&A as well.
Thank-you.
Beta Was this translation helpful? Give feedback.
All reactions