Skip to content

Custom Exception for MFA challenge on login [SDK-1998] #279

@ghost

Description

By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

The login request in AuthRequest.execute returns a TokenHolder on successful login request. If MFA is required, it throws a generic APIException and I need to manually get the values for the MFA results from a String Map

Describe the ideal solution

A custom exception that has the MFA token as a well defined variable

Alternatives and current work-arounds

What I do right now is exception.getValue("mfa_token").toString() which is quite clunky.

Additional context

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestA feature has been asked for or suggested by the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions