This Val Town application implements a WorkOS Action that blocks authentication and user registration for users with @gmail.com email addresses.
Set these environment variables in your Val Town settings:
WORKOS_API_KEY
: Your WorkOS API keyWORKOS_ACTIONS_SECRET
: The secret generated when you configure your action endpoint in the WorkOS Dashboard/action
in /backend/index.ts
@gmail.com
, the action responds with "Deny"
and blocks the operationhttps://[your-val-name].web.val.run/action
WORKOS_ACTIONS_SECRET
environment variableUse the WorkOS Dashboard's test feature to send test actions to your endpoint and verify it's working correctly.