ai-chatbot
ai-chatbot copied to clipboard
Unhandled Runtime Error - Unauthorized
Your documentation tells us how to configure it but we don't have a url for the github oauth callback.
Somehow it seems to work unauthorized when deployed, but login doesnt work on either local or deployed version.
Unhandled Runtime Error Error: Unauthorized
Call Stack
eval
node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/ai/react/dist/index.mjs (120:0)
Generator.next
And on prod:
Callback URL: https://github.com/vercel-labs/ai-chatbot/issues/28#issuecomment-1598975610
You are also likely missing a secret in prod, check the server logs as suggested on the image. (logs in the Vercel dashboard)
Also, this seems to be a duplicate report of #46, although neither has a sufficient reproduction attached. This should likely be closed in favor of #46 and a repro added there, if the above does not resolve your issue. :pray:
Hello, @balazsorban44 thansk for the response
i set the NEXTAUTH_URL="localhost:3000" in .env
no luck
It's likely NEXTAUTH_SECRET
that's missing. See the comments in https://github.com/vercel-labs/ai-chatbot/blob/main/.env.example
For further assistance, please provide a reproduction or more information about the server logs. :pray:
We now force login in all environments as well. This should be fixed. If you are seeing this error still please re-open.
Hi I saw you closed this issure without updating the documentation on how to create a secret...
Hi .. Facing same issue ... Is there any updated documentation ?