Skip to content

authenticateHandler.handle returning null causes error #737

Open
@cancan101

Description

@cancan101

The docs for authenticateHandler say:

If there is no associated user (i.e. the user is not logged in) a falsy value should be returned.

However if I return null I then get the following Error:

if (!user) {
throw new ServerError('Server error: `handle()` did not return a `user` object');
}

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