Skip to content

feature request: sigin with PAT #1061

Description

@HipyCas

What problem did you meet?

I am developing a Capacitor app, and in my local development setup (using the browser to develop said app) I cannot use the starndard sign-in flow, so I tried to implement sing-in through a Personal Access Token (that I manually got from the dashboard). Additionally, after careful consideration, I've decided that keeping the option of signing in with a PAT could be useful, as if for a user the standard sign-in flow doesn't work, they still can sign-in.

I have tried in so many different ways to do this: retrieving an access token and saving it to storage, creating a new instance of the client o load the data from storage... None of them has worked, and it seems like being able to login through a PAT should be a no-brainer, specially in the JavaScript ecosystem, where a PAT could be useful for many use cases.

Describe what you'd like Logto to have

A method in the LogtoClient to sign-in through a PAT, provided to the method, e.g. as a parameter. It should initialize the client with the same internal logic as the standard sign-in flow does, using also the configuration that said client has.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions