Skip to content

Code flow login with no context #1495

Description

@bean-ben-heb

Describe the bug
When using tryLoginCodeFlow, the Success event triggered does not have any information about what the login options were (including the state) in order to route. tryLoginCodeFlow also doesn't call onTokenReceived even though it shows deprecated

Expected behavior
tryLoginCodeFlow should have context about the login on successful token grab, either via the events or onTokenReceived.

Additional Context
I use the initLoginFlow with a string passed in. This should be passed back to the tryLogin call after token received.

The existing preserveRequestedRoute is pretty limited in what you can do before routing, like get the user info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions