Skip to content

[Feature Request] enhance function's user parameter id, expected to be string | undefined #1914

Closed
@cqh963852

Description

@cqh963852

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'.

image

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;

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions