-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathApp.vue
More file actions
44 lines (42 loc) · 914 Bytes
/
App.vue
File metadata and controls
44 lines (42 loc) · 914 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
<template>
<div :style="{ display: 'flex', justifyContent: 'center' }">
<div
:style="{
width: '400px',
margin: `10px auto`,
border: `1px solid #D1D5DB`,
padding: `25px 20px`,
'border-radius': `5px`,
}"
>
<authorizer-provider
:config="{
authorizerURL: 'https://demo.authorizer.dev',
redirectURL: window.location.origin,
clientID: '96fed66c-9779-4694-a79a-260fc489ce33',
}"
:onStateChangeCallback="stateChangeCallback"
>
<router-view />
</authorizer-provider>
</div>
</div>
</template>
<script>
import { AuthorizerProvider } from 'authorizer-vue-ts';
export default {
components: {
'authorizer-provider': AuthorizerProvider,
},
setup() {
const stateChangeCallback = (state) => {
console.log('state changes from client ==>> ', state);
};
return {
stateChangeCallback,
window,
};
},
};
</script>
<style scoped></style>