Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The use of stashed tokens #7

Open
Dingenis opened this issue May 7, 2019 · 1 comment
Open

The use of stashed tokens #7

Dingenis opened this issue May 7, 2019 · 1 comment

Comments

@Dingenis
Copy link
Contributor

Dingenis commented May 7, 2019

Hi,

How do I use the tokens that are stashed? Just connect without password, mfa_code?

var options = {
      org: organization,
      user: identifier,
      no_token: false
    };
let org = await edge.connect(options);

When I do this, I get a missing password error because the stashed token is null.

Cheers,

Bram Sinke

@DinoChiesa
Copy link
Owner

Yes, if the stashed token is null, and if you do not provide login credentials, you will get an error at runtime.

If the stashed token is non-null, apigee.connect() will succeed at runtime, and it will not use your login credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants