Skip to content

Enable constructing a authClient with a token #37

@tevonsb

Description

@tevonsb

I have a token stored for multiple users. However the current sdk does not offer an option for me to auth.OAuth2User object using a token that I already have. Instead I always need to request an authUrl to set the internal this.token parameter.

This makes the auth.OAuth2User object nearly unusable since the instance will not persist, and is used by multiple different users.

I think there should be a setToken method or similar, so I can internally set the token, and then us the isTokenExpired and refreshAuthToken methods as normal.

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