Handling Knock Request with Authentication and Credit Check

const handleKnock = (request: KnockRequest) =>
Effect.gen(function* () {
yield*
(getAuthenticatedUser(request))
yield* _(checkCredits(request.userId))
})
Was this page helpful?