Created
April 27, 2023 13:05
-
-
Save ntotten/81621b083428b699180b6f6e415d170c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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