openai-token icon indicating copy to clipboard operation
openai-token copied to clipboard

Getting undefined calling auth.getAccessToken()

Open windmemory opened this issue 2 years ago • 1 comments

My code is exactly the same as the example

import Authenticator from 'openai-token'

const auth = new Authenticator('valid-email', 'valid-password')
await auth.begin()
const token = await auth.getAccessToken()
console.log(token)

There is no any error thrown in the console, I just got undefined in the output. Is there anything I need to add here to make it work?

windmemory avatar Feb 22 '23 05:02 windmemory