Skip to content

feat: support guest session #919

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

Merged
merged 31 commits into from
Apr 26, 2025
Merged

feat: support guest session #919

merged 31 commits into from
Apr 26, 2025

Conversation

jeremyphilemon
Copy link
Collaborator

@jeremyphilemon jeremyphilemon commented Apr 9, 2025

This pull request adds support for guest sessions.

  • Authenticate as guest user on a fresh session
    • Add /api/guest route to create a new guest session
    • Redirect in middleware if incoming request does not have an active session
  • Allow to upgrade from guest to own user account through /login and /register
  • Add tests for these sessions
  • Add entitlements based on session types: guest and free
    • Specify maxMessagesPerDay
    • Specify chatModelsAvailable

Copy link

vercel bot commented Apr 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai-chatbot ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 26, 2025 6:02am

@vercel-team
Copy link

vercel-team commented Apr 9, 2025

@The-1818
Copy link

Very cool feature 👍. Will it be merged with the main branch?

@jeremyphilemon jeremyphilemon merged commit 9279135 into main Apr 26, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

3 participants