Sveltekit session update #7722
Labels
enhancement
New feature or request
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Description 📓
I'm working in a project where the user can sign in with two options: Azure and Credentials. When the user sign in using credentials, I want to give the option to change the username and update the session. Is there an implementation in sveltekit to do this?
Looking in the source code of the file
/node_modules/@auth/core/src/lib/routes/session.ts
, it seems like the update function could be implementedThe trigger would have the "update" value and I could replace the username in the jwt callback, just like in next-auth. Also, looking at
/node_modules/@auth/sveltekit/index.js
seems to be the place where I could expose the update function to the client. However, I'm lost at how to do this.Is there a way to implement it?
How to reproduce ☕️
nil
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
The text was updated successfully, but these errors were encountered: