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
597594d4
Unverified
Commit
597594d4
authored
Nov 02, 2021
by
Rishabh Poddar
Committed by
GitHub
Nov 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates dependencies for with-supertokens example (#30162)
parent
f3fcb81d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
package.json
examples/with-supertokens/package.json
+2
-2
user.js
examples/with-supertokens/pages/api/user.js
+1
-1
No files found.
examples/with-supertokens/package.json
View file @
597594d4
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,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.1
6
.0"
,
"supertokens-auth-react"
:
"^0.1
7
.0"
,
"supertokens-node"
:
"^
7.3
.0"
"supertokens-node"
:
"^
8.0
.0"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"eslint-config-next"
:
"11.0.1"
"eslint-config-next"
:
"11.0.1"
...
...
examples/with-supertokens/pages/api/user.js
View file @
597594d4
...
@@ -18,6 +18,6 @@ export default async function user(req, res) {
...
@@ -18,6 +18,6 @@ export default async function user(req, res) {
note
:
'Fetch any data from your application for authenticated user after using verifySession middleware'
,
note
:
'Fetch any data from your application for authenticated user after using verifySession middleware'
,
userId
:
req
.
session
.
getUserId
(),
userId
:
req
.
session
.
getUserId
(),
sessionHandle
:
req
.
session
.
getHandle
(),
sessionHandle
:
req
.
session
.
getHandle
(),
userDataInJWT
:
req
.
session
.
getJWT
Payload
(),
accessTokenPayload
:
req
.
session
.
getAccessToken
Payload
(),
})
})
}
}
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