Skip to content

IOS+Android issue. authorize() automatically logs users in WITHOUT ASKING FOR CREDENTIALS #526

@DiegoRealpe

Description

@DiegoRealpe

Issue

App Auth leverages the native browser to sign in users, this works all right when I sign in once. However, afterwards there is no apparent way to sign users out (unless you crash and reset the app).

Why?

After I log out my first user to log in a different user (clearing tokens/revoking tokens/hitting the logout endpoint to revoke provider's session), I navigate to my login screen and call authorize() again and instead of prompting for new credentials, it just logs in my first user AGAIN, and even worse, it doesn't even ASK for credentials anymore.

As far as I was able to deduce, the native browser that App Auth is leveraging, caches a local session with no way of clearing it, with the lovely feature of using this cached session to re-login my first user and exchanging for a fresh pair of access and refresh tokens, that I dont want them to have anymore.

I cant find how to revoke the local session that App Auth is storing. It stays active until the app is terminated but no other ways to log out and log back in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions