mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
fix logout by setting the api route as logout target
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user