Skip to content

Commit 2382c0e

Browse files
committed
clear cookie
1 parent bf5839e commit 2382c0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/routes/(auth)/login/+server.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ export const GET: RequestHandler = async ({ locals, url, cookies }) => {
1818
throw error(400, 'Invalid state');
1919
}
2020

21+
// clear the cookie after use
22+
cookies.delete('provider');
23+
2124
try {
2225
await locals.pb
2326
.collection('users')

0 commit comments

Comments
 (0)