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
Add GitHub provider #578
base: ft/addMoreRoleLogic
Are you sure you want to change the base?
Add GitHub provider #578
Conversation
PR Description updated to latest commit (8babcd9) |
PR Review
Code feedback:
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
User description
Add GitHub provider
Type
enhancement
Description
GitHubToken
type for handling GitHub data.GitHubFlow
component for GitHub account connection.Changes walkthrough
6 files
next-auth.d.ts
Integrate GitHubToken into User Interface Definitions
explorer/next-auth.d.ts
GitHubToken
type to theUser
interface in various contexts.GetDiscordRoles.tsx
Add GitHub Account Connection Component
explorer/src/components/WalletSideKick/GetDiscordRoles.tsx
GitHubFlow
to handle GitHub account connection.GitHubFlow
into the existing list components.jwt.ts
Define GitHubToken Type
explorer/src/types/jwt.ts
GitHubToken
.discord.ts
Enhance Discord Auth to Include GitHub Token
explorer/src/utils/auth/providers/discord.ts
provider.
github.ts
Implement GitHub Authentication Provider
explorer/src/utils/auth/providers/github.ts
subspace.ts
Update Subspace Auth Provider to Handle GitHub Token
explorer/src/utils/auth/providers/subspace.ts
3 files
session.ts
Define Default GitHub Token Constant
explorer/src/constants/session.ts
DEFAULT_GITHUB_TOKEN
.authOptions.ts
Update Authentication Options to Include GitHub
explorer/src/utils/auth/authOptions.ts
github
in the token configuration for session management.index.ts
Register GitHub as an Authentication Provider
explorer/src/utils/auth/providers/index.ts