Skip to content

Unable to use token when using constructor OAuthClient #7

@rickygarg

Description

@rickygarg

OAuthClient needs to be session specific. Hence, I've to initialize the OAuthClient again from its JSON saved in the session. However, that fails because the wrong param seems to be passed to the Token constructor:

function OAuthClient(config) {

    this.token = new Token(config);

}

Proposed solution: Change to:

function OAuthClient(config) {

    this.token = new Token(config.token);

}

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