Skip to content

Create user account screen shown unconditionally on error response for /api/secure/user/fromtoken #324

Open
@landonreed

Description

@landonreed

For operation with the otp-middleware, when requesting the user object from the Auth0 token, otp-react-redux routes the user to account/create unconditionally if it sees an error response.

On my local machine, I'm experiencing some issues with this Auth0 authentication error and instead of showing that 401 error to the user, we just route them to the create account screen.

The front end should have better handling for error responses from the otp-middleware, particularly for this fromtoken endpoint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions