shellphone.app/app/auth/mutations/logout.ts
2021-07-31 22:33:18 +08:00

6 lines
124 B
TypeScript

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