Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
9a82bba8
Unverified
Commit
9a82bba8
authored
Jan 26, 2023
by
Rishabh Poddar
Committed by
GitHub
Jan 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates with-supertokens example app (#45214)
parent
d5504cea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
package.json
examples/with-supertokens/package.json
+1
-1
[[...path]].tsx
examples/with-supertokens/pages/auth/[[...path]].tsx
+3
-4
No files found.
examples/with-supertokens/package.json
View file @
9a82bba8
...
...
@@ -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"
:
{
...
...
examples/with-supertokens/pages/auth/[[...path]].tsx
View file @
9a82bba8
...
...
@@ -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
(()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment