2021-07-31 15:57:43 +00:00
|
|
|
import { Ctx } from "blitz";
|
2021-07-31 14:33:18 +00:00
|
|
|
|
2021-08-30 12:53:21 +00:00
|
|
|
export default async function logout(_ = null, ctx: Ctx) {
|
2021-07-31 15:57:43 +00:00
|
|
|
return await ctx.session.$revoke();
|
2021-07-31 14:33:18 +00:00
|
|
|
}
|