Unverified Commit 293c243a authored by NkxxkN's avatar NkxxkN Committed by GitHub

add-supertokens-to-authentication.md (#22223)

Hey team. This PR is a follow up on https://github.com/vercel/next.js/pull/21384 to add a reference to `with-supertokens` example to authentication doc. 
parent 7aaebee1
...@@ -189,6 +189,18 @@ You can either use [FirebaseUI](https://github.com/firebase/firebaseui-web-react ...@@ -189,6 +189,18 @@ You can either use [FirebaseUI](https://github.com/firebase/firebaseui-web-react
[Userbase](https://userbase.com/) supports the static generation pattern for authentication. It's open source and allows for a high level of security with end-to-end encryption. You can learn more about it in their [official site](https://userbase.com/). [Userbase](https://userbase.com/) supports the static generation pattern for authentication. It's open source and allows for a high level of security with end-to-end encryption. You can learn more about it in their [official site](https://userbase.com/).
### SuperTokens
<details open>
<summary><b>Examples</b></summary>
<ul>
<li><a href="https://github.com/vercel/next.js/tree/canary/examples/with-supertokens">with-supertokens</a></li>
</ul>
</details>
[SuperTokens](https://supertokens.io) is a highly customizable, open-source solution split into modules (so you only use what you need).
SuperTokens currently supports credentials login, email verification, password reset flows, and third-party logins.
## Related ## Related
For more information on what to do next, we recommend the following sections: For more information on what to do next, we recommend the following sections:
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
"next": "latest", "next": "latest",
"react": "17.0.1", "react": "17.0.1",
"react-dom": "17.0.1", "react-dom": "17.0.1",
"supertokens-auth-react": "^0.5.1", "supertokens-auth-react": "^0.6.0",
"supertokens-node": "^3.4.0" "supertokens-node": "^4.0.0"
}, },
"license": "MIT" "license": "MIT"
} }
...@@ -16,6 +16,7 @@ const apiBasePath = '/api/auth/' ...@@ -16,6 +16,7 @@ const apiBasePath = '/api/auth/'
// Client Side configs. // Client Side configs.
if (typeof window !== 'undefined') { if (typeof window !== 'undefined') {
SuperTokensReact.init({ SuperTokensReact.init({
useReactRouterDom: false,
appInfo: { appInfo: {
appName: 'SuperTokens Demo App', appName: 'SuperTokens Demo App',
websiteDomain, websiteDomain,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment