vercel / ai-chatbot

A full-featured, hackable Next.js AI chatbot built by Vercel
https://chat.vercel.ai
Other
5.6k stars 1.67k forks source link

signOut redirect callback issue #255

Open guylepage3 opened 4 months ago

guylepage3 commented 4 months ago

There seems to be an issue with the app when a user is not authenticated.

When a user logs out of the app they are redirected to the following URI.

https://[YOUR APP].vercel.app/sign-in?callbackUrl=https%3A%2F%2F[YOUR APP].vercel.app%2F

As a result, things like metadata do not work, etc.

guylepage3 commented 4 months ago
image
guylepage3 commented 4 months ago

I can't seem to figure out where this "Callback" redirect is happening. It's causing all kinds of issues with metadata and SEO.

guylepage3 commented 4 months ago

Just checking in to see if this project is still relevant.

I've noticed that the version linked as "Demo" is a completely different instance and repository than the one linked to for the project.

One uses "Vercel Auth" and the other uses "NextAuth.js".

Two totally different auth providers.

guylepage3 commented 4 months ago

@leerob https://github.com/vercel/ai-chatbot/pull/253 should solve this as well.