You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the reproduction repo, we can see here that even if we de-comment the section at the top and adjust to redeclare the proper module, we will still get the highlighted error.
Expected behavior
Using, for example, this:
declare module "@auth/qwik"{/** * The shape of the user object returned in the OAuth providers' `profile` callback, * or the second parameter of the `session` callback, when using a database. */interfaceUser{}/** * The shape of the account object returned in the OAuth providers' `account` callback, * Usually contains information about the provider being used, like OAuth tokens (`access_token`, etc). */interfaceAccount{}/** * Returned by `useSession`, `auth`, contains information about the active session. */interfaceSession{}}import{JWT}from"@auth/qwik/jwt"declare module "@auth/qwik/jwt"{/** Returned by the `jwt` callback and `auth`, when using JWT sessions */interfaceJWT{/** OpenID ID Token */idToken?: string}}
we should be able to extend the Session and other core types (User, Account, etc.) when using the @auth/qwik framework.
The documentation on module augmentation for qwik should reflect that as well.
The text was updated successfully, but these errors were encountered:
ianlet
added
bug
Something isn't working
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
labels
Sep 23, 2024
Environment
Reproduction URL
https://github.com/ianlet/qwik-authjs-types
Describe the issue
The framework integration for Qwik doesn't re-export core types such as
Session
,User
, their adapters, etc. which causes these 2 issues:@auth/core
Session
,User
even when using module augmentation (as discussed here auth.js and qwik - Problem with adding the user role in the JWT #11672)How to reproduce
In the reproduction repo, we can see here that even if we de-comment the section at the top and adjust to redeclare the proper module, we will still get the highlighted error.
Expected behavior
Using, for example, this:
we should be able to extend the
Session
and other core types (User
,Account
, etc.) when using the@auth/qwik
framework.The documentation on module augmentation for qwik should reflect that as well.
The text was updated successfully, but these errors were encountered: