E402 Issue authenticating user via JWT when users service requires query params · Issue #2007 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content

Issue authenticating user via JWT when users service requires query params #2007

@burn2delete

Description

@burn2delete

Copied from Slack Convo

the authenticate hook cannot function as is when the db requires query params to correctly lookup the user entity during authentication, which is a common case for hosted mongodb databases which require a shard-key (specifically when using Azure CosmosDB)

Expected

Using authenticate("JWT") hook successfully authenticates user.

Actual

Authenticate hook fails with db error, No record found for id ***.

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

      0