Start authentication
Initiates an auth flow. Required fields depend on the provider: google — send redirectUrl, returns a redirect (OAuth URL) twitter — send redirectUrl, returns a…
POST
Initiates an auth flow. Required fields depend on the provider:
google— sendredirectUrl, returns aredirect(OAuth URL)twitter— sendredirectUrl, returns aredirect(OAuth URL)email— sendemailand optionallyredirectUrl, returns amagic_linksiwe— no fields, returns anoncesiws— no fields, returns anonce
When bot protection is active, wallet/email auth may return challenge_required. Render a Cloudflare Turnstile widget using the returned siteKey and resubmit with the resulting turnstileToken.
Loading code example
Loading code example
Authorizations
appIdstringheaderrequired
API key passed in the header.
Body
provider"google" | "twitter" | "apple" | "email" | "siwe" | "siws"requiredAllowed values:
"google" | "twitter" | "apple" | "email" | "siwe" | "siws"redirectUrlstring<uri>emailstring<email>Length:
<= 254turnstileTokenstringearlyAccessCodestringResponse
application/json
200
type"redirect" | "magic_link" | "nonce" | "challenge_required"requiredAllowed values:
"redirect" | "magic_link" | "nonce" | "challenge_required"urlstringsuccesstrueAllowed values:
truenoncestringstatementstringsiteKeystring