Closed vinson14 closed 1 week ago
Hi there, which version of the library are you using?
I’m using 0.6.1
I noticed that in the library, accessToken is missing under NoUserInfo interface
I see the issue, it's missing from the interface as you mentioned: https://github.com/workos/authkit-nextjs/blob/main/src/interfaces.ts#L26-L32
I'll get a fix up soon.
Thanks for the help
const { accessToken } = await getUser();
Attempted to retrieve the accessToken according to the example given in the documentation but it is resulting in a Typescript error.
Property 'accessToken' does not exist on type 'UserInfo | NoUserInfo'.ts(2339)