Compute Participant Auth Hash
growsurf_participant_auth_hashComputes a SHA-256 HMAC from an email and a caller-supplied participant auth secret to authenticate participants; optionally signs an affiliate join request when permitted, using no server secrets.
Instructions
Compute a SHA-256 HMAC using the caller-supplied participantAuthSecret. Server environment secrets are never used. Use a test secret during implementation; keep production signing in your backend. affiliateJoin requires permission for this signed-in user to join the affiliate program directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | |||
| affiliateJoin | No | ||
| participantAuthSecret | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | No | The computed hash. Pass it to the GrowSurf client as the participant's `hash` value. |