Skip to content

Commit 1b4901d

Browse files
authored
Await cookie delete in Next server action (#1311)
Fixed this in #1305 but forgot about the server action!
1 parent 25037a0 commit 1b4901d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/auth-nextjs/src/app/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class NextAppAuth extends NextAuth {
4040
createServerActions() {
4141
return {
4242
signout: async () => {
43-
this.deleteAuthCookie();
43+
await this.deleteAuthCookie();
4444
},
4545
emailPasswordSignIn: async (
4646
data: FormData | { email: string; password: string },

0 commit comments

Comments
 (0)