File tree Expand file tree Collapse file tree 2 files changed +19
-13
lines changed Expand file tree Collapse file tree 2 files changed +19
-13
lines changed Original file line number Diff line number Diff line change 1111 "dependencies" : {
1212 "path" : " ^0.12.7" ,
1313 "pinia" : " ^2.1.7" ,
14+ "supertokens-web-js" : " ^0.8.0" ,
1415 "vue" : " ^3.3.8" ,
1516 "vue-command" : " ^35.2.1" ,
1617 "vue-cookie-law" : " github:elasticdotventures/vue-cookie-law" ,
Original file line number Diff line number Diff line change @@ -8,24 +8,29 @@ import VueGtag from "vue-gtag-next";
88import { VueCookieNext } from 'vue-cookie-next' ;
99import { createPinia } from 'pinia'
1010
11+ import SuperTokens from 'supertokens-web-js' ;
12+ import Session from 'supertokens-web-js/recipe/session' ;
13+ import ThirdPartyPasswordless from 'supertokens-web-js/recipe/thirdpartypasswordless'
14+
15+ SuperTokens . init ( {
16+ appInfo : {
17+ apiDomain : "http://localhost:8080" ,
18+ apiBasePath : "/auth" ,
19+ appName : "..." ,
20+ } ,
21+ recipeList : [
22+ Session . init ( ) ,
23+ ThirdPartyPasswordless . init ( ) ,
24+ ] ,
25+ } ) ;
26+
27+
28+
1129// // An application instance won't render anything until its .mount() method is called
1230const app = createApp ( App ) ;
1331
1432app . use ( createPinia ( ) ) ;
15-
1633app . use ( VueCookieNext ) ;
17-
18- // app.use(VueGtag, {
19- // config: {
20- // id: "G-XP9X9LHTDV",
21- // params: {
22- // anonymize_ip: true
23- // }
24- // },
25- // enabled: false
26- // })
27- // .provide('gtag', app.config.globalProperties.$gtag);
28-
2934app . use ( VueGtag , {
3035 property : { id : "G-XP9X9LHTDV" } ,
3136 isEnabled : false ,
You can’t perform that action at this time.
0 commit comments