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
It throws an error when user is falsy (this includes undefined). So when it does return it should be defined right?
Nope... the type is still user: {} | undefined
Uh oh!
There was an error while loading. Please reload this page.
The playground project tries to augment
UserSession
:https://github.com/Atinux/nuxt-auth-utils/blob/e344c9880491346ab73165ac4439c129b13ec15d/playground/auth.d.ts#L3
But
user
is already declared here:https://github.com/Atinux/nuxt-auth-utils/blob/e344c9880491346ab73165ac4439c129b13ec15d/src/runtime/types/session.ts#L2
🤔I don't think it is possible to augment an already declared field of an interface.
Type errors in playground:

The text was updated successfully, but these errors were encountered: