shellphone.app/app/auth/mutations/logout.ts

6 lines
128 B
TypeScript
Raw Normal View History

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