@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.51-eak.29",
3
+ "version": "4.5.51-eak.30",
4
4
  "description": "Guard shim for react 16 / 17, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",