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
Update the whoiam [1] endpoint to return the authenticated user's info as well as the expiration date of the JWT token.
Before the rendering the Web APP must call the whoami endpoint to discovered if the user own an authenticated session. The Web APP's store is then filed accordingly.
Add a new logout API endpoint that use servant-auth-server clear-session [2]
Here is a proposal
whoiam
[1] endpoint to return the authenticated user's info as well as the expiration date of the JWT token.whoami
endpoint to discovered if the user own an authenticated session. The Web APP's store is then filed accordingly.[1] https://github.com/change-metrics/monocle/blob/master/src/Monocle/Api/Server.hs#L100
[2] https://hackage.haskell.org/package/servant-auth-server-0.4.7.0/docs/src/Servant.Auth.Server.Internal.Cookie.html#clearSession
The text was updated successfully, but these errors were encountered: