Inaccurate authentication documentation example code #7364
Closed
chrisanima
started this conversation in
General
Replies: 1 comment
-
Messed up signOut/signIn from |
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.
-
I am implementing logto authentication in next.js v15 with App Router, following https://docs.logto.io/quick-starts/next-app-router.
First, signOut/signIn in app/page.tsx should be Uppercase to match app/sign-out.tsx and app/sign-in.tsx.
Second, I got error from app/page.tsx as follows on
await SignOut(logtoConfig);/SignIn(logtoConfig)
:Argument of type 'LogtoNextConfig' is not assignable to parameter of type 'Props'. Property 'onSignOut' is missing in type 'LogtoNextConfig' but required in type 'Props'.
Could you please update the document to provide accurate and workable code segments? You may need to follow proper documentation practice based on release version tags like HuggingFace, etc.
Beta Was this translation helpful? Give feedback.
All reactions