This repository was archived by the owner on Mar 5, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 29
Token being appended multiple times #185
Copy link
Copy link
Open
Description
Environment
- Operating System: Linux
- Node Version: v18.4.0
- Nuxt Version: 3.11.2
- CLI Version: 3.11.1
- Nitro Version: 2.9.6
- Package Manager: npm@8.12.1
- Builder: -
- User Config: nitro, components, css, devtools, typescript, modules, quasar, alias, runtimeConfig
- Runtime Modules: nuxt-quasar-ui@2.0.8, @nuxt/image@1.7.0, @pinia/nuxt@0.5.1, @hebilicious/authjs-nuxt@0.3.5
- Build Modules: -
Reproduction
Follow this tutorial for implementation
https://authjs-nuxt.pages.dev/usage.html
Describe the bug
I have implemented your module, but when I test the session data I can see token is being appended again every time the page refreshes, I cant work out why it is doing it
"session": {
"user": {},
"expires": "2024-07-13T09:59:46.600Z"
},
"token": {
"token": {
"token": {
"token": {
"token": {
"token": {
"token": {
"token": {
"name": "User Name",
"email": "user@fakeorg.org",
"sub": "87f1c6f8-ef32-47c9-9cc9-c302e4f97cf4"
},
"user": {
"id": "87f1c6f8-ef32-47c9-9cc9-c302e4f97cf4",
"name": "Fake Org"
### Additional context
I am using these as callbacks
async jwt(token, user, account, profile, isNewUser) {
if (account) {
token.accessToken = account.accessToken
}
return token
},
async session(session, user, token) {
return session
}
### Logs
_No response_
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels