Skip to content

Commit 961a9a8

Browse files
committed
fix: setAuthToken parameters
1 parent c0ae5c6 commit 961a9a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/api/auth/callback/route.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,9 @@ export async function GET(request: NextRequest) {
7373
const redirectUri = new URL(OAUTH_CONFIG.CALLBACK_PATH, request.url).toString();
7474
const tokenResponse = await exchangeCodeForToken(code, redirectUri, codeVerifier);
7575

76-
// Store the access token in encrypted session
76+
// Store the access token in cookies
7777
await setAuthToken(
7878
tokenResponse.access_token,
79-
tokenResponse.token_type,
8079
tokenResponse.expires_in,
8180
);
8281

0 commit comments

Comments
 (0)