nuxt-auth-utils
nuxt-auth-utils copied to clipboard
Return UserSession type in getUserSession
Since you aren't defining a return type, TypeScript has to do a best-effort to determine it. However, this is causing it to bypass custom session types.
To fix, I suggest having this line updated to return UserSession. If needed, I can make a PR, but it may be some time before I'll have availability.
Yeah I now also get type errors.
I extend the UserSession type
interface UserSession { challenge: string }
but since getUserSession is not returning the type anymore I get type errors.
getUserSession not returning the type is a big issue that we are experiencing in production applications.
@blouflashdb @ImBoop This issue should now be resolved in the most recent update change @atinux
@blouflashdb @ImBoop This issue should now be resolved in the most recent update change @atinux
Thanks!
Fixed in #379