MCPcopy Create free account
hub / github.com/dailydotdev/apps / readToken

Function readToken

packages/shared/src/lib/turnstile.ts:25–31  ·  view source on GitHub ↗
(turnstile: TurnstileInstance)

Source from the content-addressed store, hash-verified

23 });
24
25const readToken = (turnstile: TurnstileInstance): string | undefined => {
26 try {
27 return turnstile.getResponse() || undefined;
28 } catch {
29 return undefined;
30 }
31};
32
33// Note: we poll `getResponse()` instead of using `getResponsePromise()`. In
34// @marsidev/react-turnstile the latter only waits for the widget to render and

Callers 1

waitForTurnstileTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected