Skip to content

Commit bca7743

Browse files
committed
rebaes
1 parent ab5723c commit bca7743

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
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",

src/main.ts

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,29 @@ import VueGtag from "vue-gtag-next";
88
import { VueCookieNext } from 'vue-cookie-next';
99
import { 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
1230
const app = createApp(App);
1331

1432
app.use(createPinia());
15-
1633
app.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-
2934
app.use(VueGtag, {
3035
property: { id: "G-XP9X9LHTDV" },
3136
isEnabled: false,

0 commit comments

Comments
 (0)