Open
Description
In README code examples show:
const authResponse = await oauthClient.createToken(..); // or .refresh() or .refreshUsingToken(..)
console.log('Token is', authResponse.json)
Instead it should be:
await oauthClient.createToken(..); // or .refresh() or .refreshUsingToken(..)
console.log('Token is', oauthToken.token.getToken())
Reason is in 1st case createdAt is missing, and this is a big issue if you save that json without it
btw I think you should rather save only 1 field: expireAt field rather than 2: createdAt + expire_in
Metadata
Assignees
Labels
No labels