Skip to content

Conversation

InaFK
Copy link

@InaFK InaFK commented Aug 13, 2025

  • Add GitHub OAuth login flow with Next.js and Strapi integration
  • Implement AuthContext for user state management
  • Add graceful error handling with mock auth fallback (temp)
  • Configure Next.js image domains for GitHub avatars
  • Add user-friendly UI components for authentication flow
  • Handle backend connectivity issues with fallback authentication
image image

InaFK added 2 commits July 29, 2025 17:58
…pi.ts for reusable API helpers; add /dashboard as a protected route with logout
@InaFK InaFK requested a review from aliakseitokarev August 13, 2025 21:38
@InaFK InaFK requested a review from Shastel September 11, 2025 00:00
}

const params = new URLSearchParams({
client_id: process.env.NEXT_PUBLIC_GITHUB_CLIENT_ID!,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to check env variables before forming the request, and send a 500 if env variables are missing

});

const response = await fetch(
"https://github.com/login/oauth/access_token",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it also would be a common practice to have this url in the env varibale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants