File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
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 @@ -12,6 +12,24 @@ import { createPinia } from 'pinia'
1212const app = createApp ( App ) ;
1313const pinia = createPinia ( )
1414
15+
16+ import SuperTokens from 'supertokens-web-js' ;
17+ import Session from 'supertokens-web-js/recipe/session' ;
18+ import ThirdPartyPasswordless from 'supertokens-web-js/recipe/thirdpartypasswordless'
19+
20+ SuperTokens . init ( {
21+ appInfo : {
22+ apiDomain : "http://localhost:8080" ,
23+ apiBasePath : "/auth" ,
24+ appName : "..." ,
25+ } ,
26+ recipeList : [
27+ Session . init ( ) ,
28+ ThirdPartyPasswordless . init ( ) ,
29+ ] ,
30+ } ) ;
31+
32+
1533app
1634. use ( pinia )
1735. use ( VueCookieNext )
You can’t perform that action at this time.
0 commit comments