added github user scope to auth

This commit is contained in:
Torben Haack 2024-10-10 15:00:44 +02:00
parent b2835571aa
commit 4fec0fb433
2 changed files with 5 additions and 3 deletions

Binary file not shown.

View File

@ -6,7 +6,9 @@ export const dynamic = "force-dynamic";
export async function GET(): Promise<Response> {
const state = generateState();
const url = await github.createAuthorizationURL(state);
const url = await github.createAuthorizationURL(state, {
scopes: ["user"],
});
const ONE_HOUR = 60 * 60;
cookies().set("github_oauth_state", state, {