Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the code to route to the chat window described? #534

Open
aicodedog opened this issue Nov 14, 2024 · 0 comments
Open

Where is the code to route to the chat window described? #534

aicodedog opened this issue Nov 14, 2024 · 0 comments

Comments

@aicodedog
Copy link

aicodedog commented Nov 14, 2024

I've been reading through your great code.

I can't find where the code is to automatically switch to the chat window after logging in, and would appreciate it if you could point me to it.

What I don't understand is how to redirected to http://localhost:3000/chat/[id] after login, even though it is written as below.

app/(auth)/auth.config.ts
...
if (isLoggedIn) {
return Response.redirect(new URL(‘/’, nextUrl as unknown as URL));
}
...
http://localhost:3000/login --> http://localhost:3000/chat/[id]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant