Unverified Commit 9a82bba8 authored by Rishabh Poddar's avatar Rishabh Poddar Committed by GitHub

Updates with-supertokens example app (#45214)

parent d5504cea
......@@ -9,7 +9,7 @@
"next": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"supertokens-auth-react": "^0.29.0",
"supertokens-auth-react": "^0.30.0",
"supertokens-node": "^12.0.0"
},
"devDependencies": {
......
......@@ -5,10 +5,9 @@ import dynamic from 'next/dynamic'
import SuperTokens from 'supertokens-auth-react'
import { redirectToAuth } from 'supertokens-auth-react'
const SuperTokensComponentNoSSR = dynamic(
new Promise((res) => res(SuperTokens.getRoutingComponent)) as any,
{ ssr: false }
)
const SuperTokensComponentNoSSR = dynamic<
React.ComponentProps<typeof SuperTokens.getRoutingComponent>
>(new Promise((res) => res(SuperTokens.getRoutingComponent)), { ssr: false })
export default function Auth(): JSX.Element {
useEffect(() => {
......
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