Skip to content

Commit 8ac4d8f

Browse files
committed
fix: delete unmatched cookie
1 parent e3bd79f commit 8ac4d8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/auth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ export async function getOidcProviderAccessToken(
197197

198198
// Verify the token belongs to the current user
199199
if (parsedData.userId !== userId) {
200+
cookieStore.delete(COOKIE_NAME);
200201
return null;
201202
}
202203

0 commit comments

Comments
 (0)