@authing/guard-shim-react 4.5.51-eak.29 → 4.5.51-eak.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/guard.min.js +337 -337
- package/dist/typings/src/SendCode/turnstile.d.ts +6 -1
- package/package.json +1 -1
|
@@ -4,6 +4,8 @@ export interface TurnstileConfig {
|
|
|
4
4
|
siteKey: string;
|
|
5
5
|
action: 'send_code';
|
|
6
6
|
scriptUrl: string;
|
|
7
|
+
/** User-pool policy; optional while rolling out the new server version. */
|
|
8
|
+
allowedHostnames?: string[];
|
|
7
9
|
}
|
|
8
10
|
export interface TurnstileApi {
|
|
9
11
|
render: (container: HTMLElement, options: {
|
|
@@ -34,7 +36,10 @@ export declare const loadTurnstile: (document: Document) => Promise<TurnstileApi
|
|
|
34
36
|
export declare const readTurnstileConfig: (response: {
|
|
35
37
|
code?: number;
|
|
36
38
|
data?: TurnstileConfig;
|
|
37
|
-
}) => TurnstileConfig;
|
|
39
|
+
}, hostname?: string) => TurnstileConfig;
|
|
40
|
+
export declare class TurnstileHostnameError extends Error {
|
|
41
|
+
constructor();
|
|
42
|
+
}
|
|
38
43
|
export declare class TurnstileChallengeError extends Error {
|
|
39
44
|
constructor(message: string);
|
|
40
45
|
}
|
package/package.json
CHANGED