Created
March 5, 2022 19:27
-
-
Save aaishikasb/97d71fb9726268b96c3d78e3710efb86 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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