-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.ts
More file actions
41 lines (31 loc) · 959 Bytes
/
main.ts
File metadata and controls
41 lines (31 loc) · 959 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
// src/main.ts
import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
// https://matteo-gabriele.gitbook.io/vue-gtag/
import VueGtag from "vue-gtag-next";
import { VueCookieNext } from 'vue-cookie-next';
import { createPinia } from 'pinia'
import SuperTokens from 'supertokens-web-js';
import Session from 'supertokens-web-js/recipe/session';
import ThirdPartyPasswordless from 'supertokens-web-js/recipe/thirdpartypasswordless'
SuperTokens.init({
appInfo: {
apiDomain: "http://localhost:8080",
apiBasePath: "/auth",
appName: "...",
},
recipeList: [
Session.init(),
ThirdPartyPasswordless.init(),
],
});
// // An application instance won't render anything until its .mount() method is called
const app = createApp(App);
app.use(createPinia());
app.use(VueCookieNext);
app.use(VueGtag, {
property: { id: "G-XP9X9LHTDV" },
isEnabled: false,
});
app.mount('#app');