Skip to content

Login cancelled should not throw error/exception #4

@Sam-Lam-Varadise

Description

@Sam-Lam-Varadise

Bug Report

When initiating sign-in and closing the AuthSession (e.g., user cancels or closes the login prompt), the library throws an error or exception:

ERROR  [OIDC-AUTH] Login failed [Error: AuthSession cancelled]
... (see full call stack above) ...

This should be considered an accepted/cancelled case and not treated as an error/exception. The library should handle this gracefully, possibly by returning a specific status or callback for cancellation, rather than throwing.

Steps to reproduce

  • Start sign-in flow
  • Close/cancel the AuthSession

Expected behavior

  • No error/exception thrown
  • Cancellation is handled as a valid outcome

If this is already possible, please document how to handle cancellation properly.

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