Skip to content

Instantly share code, notes, and snippets.

@aaishikasb
Created March 5, 2022 19:27
Show Gist options
  • Save aaishikasb/97d71fb9726268b96c3d78e3710efb86 to your computer and use it in GitHub Desktop.
Save aaishikasb/97d71fb9726268b96c3d78e3710efb86 to your computer and use it in GitHub Desktop.
import React from 'react';
import SuperTokens from "supertokens-auth-react";
import Passwordless from "supertokens-auth-react/recipe/passwordless";
import Session from "supertokens-auth-react/recipe/session";
SuperTokens.init({
appInfo: {
appName: "supertokens-passwordless",
apiDomain: "https://localhost:8000",
websiteDomain: "https://localhost:3000",
apiBasePath: "/auth",
websiteBasePath: "/auth"
},
recipeList: [
Passwordless.init({
contactMethod: "EMAIL"
}),
Session.init()
]
});
/* Your App */
class App extends React.Component {
render() {
return (<div>{/*Your app components*/}</div>)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment