Skip to content

Instantly share code, notes, and snippets.

@ntotten
Created April 27, 2023 13:05
Show Gist options
  • Save ntotten/81621b083428b699180b6f6e415d170c to your computer and use it in GitHub Desktop.
Save ntotten/81621b083428b699180b6f6e415d170c to your computer and use it in GitHub Desktop.
import { ZuploContext, ZuploRequest, HttpProblems } from "@zuplo/runtime";
export default async function (
request: ZuploRequest,
context: ZuploContext
) {
if (request.user.data.isExpired === true) {
return HttpProblems.forbidden(request, context, {
detail: "This account is expired."
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment