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

6 lines
126 B
TypeScript
Raw Normal View History

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