feat(auth): add GitHub OAuth login#44
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c880ff9ad2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e62fbddd52
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <Button | ||
| disabled={isExchangePending || Boolean(levelError)} | ||
| size="lg" | ||
| type="submit" |
There was a problem hiding this comment.
Add a restart path for failed onboarding exchanges
When onboardingRequired=true, a 4xx/5xx response from /oauth/github/token leaves users with only the same submit action, which reuses the original OAuth code. Because authorization codes are short-lived/single-use, this branch can trap users in a non-recoverable loop unless they manually edit the URL or navigate away. Please offer an explicit way to restart from /login (or re-initiate OAuth) in the onboarding error state, like the non-onboarding branch already does.
Useful? React with 👍 / 👎.
Summary
Validation
Closes #43