Replies: 1 comment
-
Unfortunately, there are compatibility issues with newer versions of Next.js, even with pages router. I'm currently working on a new version of the JS SDK working with latest Next.js. Documentation is missing, but you can try to install it: https://www.npmjs.com/package/@fief/fief/v/0.15.0-beta.2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I use nextjs (14.2.3) and i configured nextjs for working with pages router - especially for fief. In general manual from fief docs works good. I have access token and working routing checking, but i have a problem with hook "useFiefUserinfo()". When I use it I got an error:
SyntaxError: Unexpected token 'export'
Just this code create the problem:
const userinfo = useFiefUserinfo();
If I comment this line, my app works very well. Other hooks like "useFiefAccessTokenInfo" works good.
Beta Was this translation helpful? Give feedback.
All reactions