Skip to content

Backgrounding the app without canceling auth flow #295

Description

@satyajitvure91

Describe the feature request?

Hey Okta team,

When user clicks on Login button, we are setting our loading state to true and call WebAuthenticationClient's login which then launches the chrome custom tab. If user closes the tab, we catch the FlowCancelledException which we use to reset the loading state.

If the user backgrounds the app and then use the app launcher icon to relaunch the app, the custom tab gets destroyed and it leaves the user in perpetual loading state. Is there a callback that can be used here to reset loading state when the ForegroundActivity gets destroyed?

New or Affected Resource(s)

User loading state

Provide a documentation link

No response

Additional Information?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions