Aithusa
11/01/2022, 3:27 AMrp
11/01/2022, 5:27 AMAithusa
11/01/2022, 6:20 AMts
import * as React from "react";
import * as SuperTokens from "supertokens-auth-react";
import * as ThirdPartyEmailPassword from "supertokens-auth-react/recipe/thirdpartyemailpassword";
import { Github, Google, Facebook, Apple } from "supertokens-auth-react/recipe/thirdpartyemailpassword";
import Session from "supertokens-auth-react/recipe/session";
SuperTokens.init({
appInfo: {
appName: "DevChat",
apiDomain: "localhost",
websiteDomain: "localhost",
apiBasePath: "/auth",
websiteBasePath: "/auth"
},
recipeList: [
ThirdPartyEmailPassword.init({
signInAndUpFeature: {
providers: [
Github.init(),
Google.init(),
Facebook.init(),
Apple.init(),
],
},
}),
Session.init(),
],
});
class SuperTokensReactComponent extends React.Component {
override render() {
if (SuperTokens.canHandleRoute()) {
return SuperTokens.getRoutingComponent();
}
return "Route not found";
}
}
export default SuperTokensReactComponent;
rp
11/01/2022, 6:21 AMjscyo
11/01/2022, 7:08 AMrp
11/01/2022, 2:31 PMAithusa
11/01/2022, 5:31 PMsh
ERROR in ./src/views/AuthView.vue?vue&type=template&id=62fe0c27&ts=true (./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/views/AuthView.vue?vue&type=template&id=62fe0c27&ts=true) 8:27
Module parse failed: Unexpected token (8:27)
File was processed with these loaders:
* ./node_modules/vue-loader/dist/templateLoader.js
* ./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| ]
|
> export function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {
| return (_openBlock(), _createElementBlock("main", null, _hoisted_2))
| }
rp
11/01/2022, 5:32 PMAithusa
11/01/2022, 5:32 PMrp
11/01/2022, 5:33 PMAithusa
11/01/2022, 5:34 PMrp
11/01/2022, 5:34 PM