@auth/xata-adapter issue.
i've a sveltekit app (svelte 4) and i am using authjs (nextauth) to implement google signin. signout / signout works. however i've noticed that
updateSession
doesn't work. i spent some time and bumped my authjs related packages to the latest i.e. @auth/core@latest @auth/sveltekit@latest @auth/xata-adapter@latest
.
my session config is as follows:
when i console log the nextauth_session
record i get the following output:
the adapter is looking for the flat xata_*
fields, but they're nested in the xata
object.
so i have to manually clear my cookies and signin again.
is there any way to get around this?3 Replies
Hi @mrcentigrade sorry for the delay, I'll take a look at this now and see if I can find a solution. Thanks for your patience.
thanks for getting back @cmck ! i ended up writing my own
updateSession
in the meantime 🙂
does xata allow contributions? i'll have happy to do a PR. please let me know.That's great to hear, glad you were able to find a fix. Xata does not allow contributions at the moment but I will bring this to the team's attention and see if they can make a similar fix. Thanks again!