Closed avikalpg closed 3 months ago
The changes introduce a new sign-in page for Vibinex, allowing users to authenticate via their code-hosting provider. This includes updates to the authOptions
in the NextAuth configuration and adjustments to the getPreferredTheme
function to handle the absence of window
. The sign-in page now accepts providers as a parameter and is exported by default.
File | Change Summary |
---|---|
pages/api/auth/[...nextauth].ts |
Added signIn: '/auth/signin' under the pages property in the authOptions object. |
pages/auth/signin.tsx |
Introduced a new sign-in page, updated SignInPage to accept providers, and added default export. |
utils/theme.ts |
Updated getPreferredTheme to handle window being undefined and refactored localStorage access. |
sequenceDiagram
participant User
participant SignInPage
participant NextAuth
participant CodeHostingProvider
User->>SignInPage: Access /auth/signin
SignInPage->>NextAuth: Request available providers
NextAuth-->>SignInPage: Return providers
User->>SignInPage: Select provider and sign in
SignInPage->>CodeHostingProvider: Redirect for authentication
CodeHostingProvider-->>SignInPage: Authentication response
SignInPage->>NextAuth: Send authentication details
NextAuth-->>User: Redirect to authenticated page
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
The latest updates on your projects. Learn more about Vercel for Git ↗︎