growsurf_participant_auth_hash
Generate the SHA-256 HMAC required for GrowSurf participant auto authentication using an email, with an optional flag to allow affiliate sign-up.
Instructions
Compute the server-side SHA-256 HMAC for GrowSurf Participant Auto Authentication. Set affiliateJoin only when this signed-in user may join the affiliate program directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | |||
| affiliateJoin | No | ||
| participantAuthSecret | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | No | The computed hash. Pass it to the GrowSurf client as the participant's `hash` value. |