-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
[Feature Request] enhance function's user parameter id, expected to be string | undefined #1914
Comments
Hi @cqh963852 , when the user id is not available, what's the expected authorization behavior that you desire? Usually people want to treat it as an anonymous user and if so, you can call |
|
Is your feature request related to a problem? Please describe.
While using zenstack with next-auth@5. ts show me
Type 'undefined' is not assignable to type 'string'.
I think in some scenarios, such as user registration, there is no user id at this time.
Describe the solution you'd like
remove the required props;
The text was updated successfully, but these errors were encountered: