token-lifecycle

Installation
SKILL.md

Token Lifecycle

Handle token generation, expiration, validation workflow, and form integration.

Understanding Tokens

Turnstile tokens are single-use and expire after a timeout (typically 5 minutes). Once validated by your server, they cannot be used again.

Three Ways to Get Tokens

1. onSuccess Callback (Recommended)

Get the token when the user completes the challenge:

import { Turnstile } from '@marsidev/react-turnstile'
import { useState } from 'react'
Installs
1
GitHub Stars
812
First Seen
Jun 19, 2026
token-lifecycle — marsidev/react-turnstile