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

Saving token.refresh_token to a file #37

Open
Marcuzzz opened this issue Feb 28, 2022 · 0 comments
Open

Saving token.refresh_token to a file #37

Marcuzzz opened this issue Feb 28, 2022 · 0 comments

Comments

@Marcuzzz
Copy link

    myApiOauth.setTokens({
      refresh_token: credentials.refresh_token
    });
  } else {
    myApiOauth.openAuthWindowAndGetTokens()
      .then(token => {
}

I still don't 100% understand what is happening here...
I'm used to using python and a library that creates a file: credentials.storage (json structure/file)

I've tried to recreate this with the google-oauth2
Can google-oauth2 also create a token_response:

    "token_response": {
        "access_token": "",
        "expires_in": 3599,
        "refresh_token": "",
        "scope": "",
        "token_type": "Bearer"
    },

And scope is not a list?

"scope": "https://www.googleapis.com/auth/spreadsheets openid https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/userinfo.email",

I also saw 'openid' what's that?

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

1 participant