-
Notifications
You must be signed in to change notification settings - Fork 133
Return UserSession type in getUserSession #358
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
Comments
Yeah I now also get type errors. I extend the UserSession type interface UserSession { 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. |
Created PR: #379 |
@blouflashdb @ImBoop This issue should now be resolved in the most recent update change @atinux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Line is here
The text was updated successfully, but these errors were encountered: