-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path+layout.svelte
More file actions
44 lines (42 loc) · 984 Bytes
/
+layout.svelte
File metadata and controls
44 lines (42 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<script>
import { AuthorizerProvider } from '@authorizerdev/authorizer-svelte';
import '@authorizerdev/authorizer-svelte/styles/default.css';
</script>
<main class="container">
<div class="component-warpper">
<AuthorizerProvider
config={{
authorizerURL: 'http://localhost:8080',
redirectURL: typeof window != 'undefined' ? window.location.origin : ``
}}
onStateChangeCallback={(/** @type {any} */ state) =>
console.log('updated state ==>> ', state)}
>
<slot />
</AuthorizerProvider>
</div>
</main>
<style>
main {
font-family: -apple-system, system-ui, sans-serif;
color: #374151;
font-size: 14px;
}
.container {
display: flex;
height: 100vh;
flex-direction: column;
justify-content: center;
align-items: center;
}
.component-warpper {
display: flex;
flex-direction: column;
justify-content: center;
width: 400px;
margin: 10px auto;
border: 1px solid #d1d5db;
padding: 25px 20px;
border-radius: 5px;
}
</style>