How to update session in Auth.js v5? #11217
Unanswered
patrickariel
asked this question in
Help
Replies: 2 comments
-
Did you find out the solution to the problem for your use case? I am having a similar problem and can't seem to figure out. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is such a mess, as with everything in Auth.js... session.update() indeed doesn't work... The latest docs don't mention updating the session at all whatsoever, the only reference is the UpdateSession() , but it doesn't actually update anything and the "trigger" event in the jwt or session callbacks is always null... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There has been a few issues documenting this problem, but they were all closed:
So I'm wondering, is
update
working for anyone at all? My use-case was that I was trying to update the name field in the database and updating the session to reflect it. I already have a working database adapter setup, but thename
field only gets filled after logging out and then logging back in.Anyone have any solutions?
Beta Was this translation helpful? Give feedback.
All reactions