Skip to content

Commit

Permalink
Merge branch 'main' into stub-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
zoey-kaiser authored Mar 20, 2024
2 parents e25b060 + 5d713aa commit 9e5ff04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/server/services/authjs/nuxtAuthHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export const getToken = <R extends boolean = false>({ event, secureCookie, secre
headers: getHeaders(event) as IncomingHttpHeaders
},
// see https://github.com/nextauthjs/next-auth/blob/8387c78e3fef13350d8a8c6102caeeb05c70a650/packages/next-auth/src/jwt/index.ts#L73
secureCookie: secureCookie || getServerOrigin(event).startsWith('https://'),
secureCookie: secureCookie ?? getServerOrigin(event).startsWith('https://'),
secret: secret || usedSecret,
...rest
})
Expand Down

0 comments on commit 9e5ff04

Please sign in to comment.