Skip to content

Commit 041dc5c

Browse files
committed
🐛 FIX(OAuth/Github): scopes missing
1 parent 12c9716 commit 041dc5c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/api/auth/login/github/route.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import { github } from "~/lib/lucia";
44

55
export const GET = async () => {
66
const state = generateState();
7-
const url = await github.createAuthorizationURL(state);
7+
const url = await github.createAuthorizationURL(state, {
8+
scopes: ["user:email", "read:user"],
9+
});
810

911
cookies().set("github_oauth_state", state, {
1012
path: "/",

0 commit comments

Comments
 (0)