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
Our usecase is fetching the user object from our own database after login and storing the user-id and org-id that we gave that user in the session, next to the ids that workos gave them. Also you could store more information you have about the user in the session instead of having to make db calls every time.
Would have to be async so you can do db calls :)
The text was updated successfully, but these errors were encountered:
It would be great if we could get a callback that would let us change the session object.
In Auth0 you can do this with https://auth0.github.io/nextjs-auth0/types/handlers_callback.AfterCallbackAppRoute.html
Our usecase is fetching the user object from our own database after login and storing the user-id and org-id that we gave that user in the session, next to the ids that workos gave them. Also you could store more information you have about the user in the session instead of having to make db calls every time.
Would have to be async so you can do db calls :)
The text was updated successfully, but these errors were encountered: