siwe-oidc/js/ui/src/main.ts
Simon Bihel c37577f218
Address some issues from the core conformance suite (#4)
Also address Clippy warnings
2021-12-20 16:29:43 +00:00

20 lines
411 B
TypeScript

import './global.css';
import App from './App.svelte';
const params = new URLSearchParams(window.location.search);
const app = new App({
target: document.body,
props: {
domain: params.get('domain'),
nonce: params.get('nonce'),
redirect: params.get('redirect_uri'),
state: params.get('state'),
oidc_nonce: params.get('oidc_nonce'),
client_id: params.get('client_id')
}
});
export default app;