Skip to content

Commit 64185dc

Browse files
committed
wip, pausing to hotfix main
1 parent c0d8deb commit 64185dc

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,24 @@ import { createPinia } from 'pinia'
1212
const app = createApp(App);
1313
const 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+
1533
app
1634
.use(pinia)
1735
.use(VueCookieNext)

0 commit comments

Comments
 (0)