We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aec1f5d + 45b4c41 commit ed849faCopy full SHA for ed849fa
app/src/App.tsx
@@ -4,6 +4,12 @@ import { AuthorizerProvider } from '@authorizerdev/authorizer-react';
4
import Root from './Root';
5
import { createRandomString } from './utils/common';
6
7
+declare global {
8
+ interface Window {
9
+ __authorizer__: any;
10
+ }
11
+}
12
+
13
export default function App() {
14
const searchParams = new URLSearchParams(window.location.search);
15
const state = searchParams.get('state') || createRandomString();
@@ -24,7 +30,6 @@ export default function App() {
24
30
urlProps.redirectURL = window.location.origin + '/app';
25
31
}
26
32
const globalState: Record<string, string> = {
27
- // @ts-ignore
28
33
...window['__authorizer__'],
29
34
...urlProps,
35
};
0 commit comments