From a8b1629a93adacd33c96e1ec5a130753412a9def Mon Sep 17 00:00:00 2001 From: pilcrowOnPaper Date: Mon, 7 Oct 2024 10:45:04 +0900 Subject: [PATCH] fix code --- pages/tutorials/github-oauth/nextjs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/tutorials/github-oauth/nextjs.md b/pages/tutorials/github-oauth/nextjs.md index f06e0ed..a853342 100644 --- a/pages/tutorials/github-oauth/nextjs.md +++ b/pages/tutorials/github-oauth/nextjs.md @@ -165,8 +165,8 @@ export async function GET(request: Request): Promise { // TODO: Replace this with your own DB query. const user = await createUser(githubUserId, githubUsername); - const sessionToken = generateSessionToken(); - const session = await createSession(sessionToken, user.id); + const token = generateSessionToken(); + const session = await createSession(token, user.id); setSessionTokenCookie(token, session.expiresAt); return new Response(null, { status: 302,