feat: add GitHub OAuth authentication with Turso - #42
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
arnabnandy7
force-pushed
the
feature/githubOAuthLogin
branch
from
August 20, 2026 13:23
4e30eb4 to
a72b9eb
Compare
arnabnandy7
force-pushed
the
feature/githubOAuthLogin
branch
from
August 20, 2026 13:27
a72b9eb to
8f772ab
Compare
arnabnandy7
force-pushed
the
feature/githubOAuthLogin
branch
from
August 20, 2026 13:41
8f772ab to
91c8ec5
Compare
arnabnandy7
force-pushed
the
feature/githubOAuthLogin
branch
from
August 20, 2026 13:45
91c8ec5 to
96c01d7
Compare
Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
arnabnandy7
force-pushed
the
feature/githubOAuthLogin
branch
from
August 20, 2026 14:14
96c01d7 to
a3d673d
Compare
|
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Adds GitHub OAuth authentication using Better Auth, with users, linked accounts, and sessions persisted in Turso.
Changes
/api/auth/[...all]authentication route.env.exampleEnvironment Variables
The following variables must be configured in Vercel:
TURSO_DATABASE_URLTURSO_AUTH_TOKENBETTER_AUTH_SECRETBETTER_AUTH_URLGITHUB_CLIENT_IDGITHUB_CLIENT_SECRETFor production:
GitHub OAuth callback URL:
Database
The migration creates the following tables:
useraccountsessionverificationThe migration has already been applied to the current Turso database.
Validation
Testing Instructions
Closes #41