Skip to content

Commit ed849fa

Browse files
committed
2 parents aec1f5d + 45b4c41 commit ed849fa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/src/App.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ import { AuthorizerProvider } from '@authorizerdev/authorizer-react';
44
import Root from './Root';
55
import { createRandomString } from './utils/common';
66

7+
declare global {
8+
interface Window {
9+
__authorizer__: any;
10+
}
11+
}
12+
713
export default function App() {
814
const searchParams = new URLSearchParams(window.location.search);
915
const state = searchParams.get('state') || createRandomString();
@@ -24,7 +30,6 @@ export default function App() {
2430
urlProps.redirectURL = window.location.origin + '/app';
2531
}
2632
const globalState: Record<string, string> = {
27-
// @ts-ignore
2833
...window['__authorizer__'],
2934
...urlProps,
3035
};

0 commit comments

Comments
 (0)