Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property 'token' does not exist on type #152

Open
imcm7 opened this issue Jan 11, 2024 · 0 comments
Open

Property 'token' does not exist on type #152

imcm7 opened this issue Jan 11, 2024 · 0 comments

Comments

@imcm7
Copy link

imcm7 commented Jan 11, 2024

Environment

Reproduction

https://github.com/imcm7/nuxt-event/tree/main
bun i
ncu
ncu -u
nuxi upgrade --force

Describe the bug

Property 'token' does not exist on type '({ session: Session; user: AdapterUser; } | { session: Session; token: JWT; }) & { newSession: any; trigger?: "update" | undefined; }'.ts(2339)
(parameter) token: any
Available when AuthConfig.session is set to strategy: "jwt"

Additional context

AuthConfig = {
  // adapter: undefined,
  session: {
    strategy: 'jwt',
  },
  callbacks: {
    async session({ session, token }) { // ?????

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant