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

6 lines
126 B
TypeScript

import { Ctx } from "blitz";
export default async function logout(_: any, ctx: Ctx) {
return await ctx.session.$revoke();
}