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
When using getKindeServerSession() and the function getUser(), the return type inferred is :
Promise<KindeUser<Record<string, any>>>
The resulting object can however be null, but it isn't picked up upon by TS. It notably can make the build of a nextjs production build fail, as the User is not defined at that moment.
Prerequisites
Describe the issue
When using getKindeServerSession() and the function getUser(), the return type inferred is :
The resulting object can however be
null
, but it isn't picked up upon by TS. It notably can make the build of a nextjs production build fail, as theUser
is not defined at that moment.Library URL
https://github.com/kinde-oss/kinde-auth-nextjs
Library version
2.4.6
Operating system(s)
macOS
Operating system version(s)
macOS 15.2
Further environment details
No response
Reproducible test case URL
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: