-
Notifications
You must be signed in to change notification settings - Fork 243k
MVP authentication backend implementation #1121
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
Open
curty
wants to merge
16
commits into
jtleek:master
Choose a base branch
from
curty:cursor/mvp-auth-backend
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6589f53
Add comprehensive technical specification for CloudPeople
curty 7c88929
Add minimal Postgres schema proposal for users, auth, and profiles
cursoragent ab73a19
Reduce schema scope per review feedback
cursoragent 3ba60dd
Merge pull request #1 from curty/cursor/user-authentication-profiles-…
curty 9bf0d88
Add authentication flows design proposal
cursoragent 0fe678a
Merge pull request #2 from curty/cursor/authentication-flows-design-a958
curty ad6c093
Initialize Next.js 14 project structure
cursoragent bfe67ea
Add database migrations for auth tables
cursoragent 0d4d834
Add database connection utilities
cursoragent 45091de
Add auth utilities
cursoragent 5b92ca9
Add session management and API utilities
cursoragent fb353a3
Add POST /api/auth/register endpoint
cursoragent ba800ba
Add POST /api/auth/login endpoint
cursoragent 654dce1
Add POST /api/auth/logout and GET /api/auth/me
cursoragent fbe076f
Add email verification and password reset endpoints
cursoragent a9bd1f6
Add OAuth scaffolding (config only, not enabled)
cursoragent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Database (PostgreSQL) | ||
| DATABASE_URL="postgresql://user:password@localhost:5432/cloudpeople" | ||
|
|
||
| # Node environment | ||
| NODE_ENV="development" | ||
|
|
||
| # Application URL (for email links in production) | ||
| APP_URL="http://localhost:3000" | ||
|
|
||
| # OAuth Providers (optional - not enabled by default) | ||
| # Uncomment and configure to enable OAuth | ||
|
|
||
| # Google OAuth | ||
| # GOOGLE_CLIENT_ID="" | ||
| # GOOGLE_CLIENT_SECRET="" | ||
|
|
||
| # GitHub OAuth | ||
| # GITHUB_CLIENT_ID="" | ||
| # GITHUB_CLIENT_SECRET="" |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "extends": "next/core-web-vitals" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # Dependencies | ||
| node_modules/ | ||
|
|
||
| # Next.js | ||
| .next/ | ||
| out/ | ||
|
|
||
| # Environment | ||
| .env | ||
| .env.local | ||
| .env.*.local | ||
|
|
||
| # Build | ||
| *.tsbuildinfo | ||
|
|
||
| # IDE | ||
| .idea/ | ||
| .vscode/ | ||
|
|
||
| # OS | ||
| .DS_Store | ||
|
|
||
| # Logs | ||
| *.log | ||
| npm-debug.log* |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed: backend-only MVP auth per AUTHENTICATION_FLOWS.md.
Session-based auth, email/password primary, OAuth scaffold only.
Looks good to merge.