fix logout by setting the api route as logout target

This commit is contained in:
dswbx
2025-06-07 08:48:28 +02:00
parent 3fbea8ace7
commit a5b59c004e
2 changed files with 4 additions and 3 deletions

View File

@@ -347,6 +347,7 @@ export class Authenticator<Strategies extends Record<string, Strategy> = Record<
}
async logout(c: Context<ServerEnv>) {
$console.info("Logging out");
c.set("auth", undefined);
const cookie = await this.getAuthCookie(c);