Skip to content

Commit

Permalink
Update SDKs and nvmrc (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-stytch authored Aug 29, 2024
1 parent 735f636 commit 765957d
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 137 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.10.0
v18.18.1
184 changes: 52 additions & 132 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
],
"dependencies": {
"@github/webauthn-json": "^2.0.1",
"@stytch/nextjs": "^20.3.3",
"@stytch/vanilla-js": "^4.18.1",
"@stytch/nextjs": "^21.0.0",
"@stytch/vanilla-js": "^5.2.0",
"cookies": "^0.8.0",
"next": "^12.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"stytch": "^8.3.0"
"stytch": "^11.4.1"
},
"devDependencies": {
"@types/cookies": "^0.7.7",
Expand Down
2 changes: 1 addition & 1 deletion pages/api/sessions/authenticate_jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function handler(req: NextApiRequest, res: NextApiResponse<Response
// Start a timer to measure authentication process time
const start = process.hrtime();
// Authenticate the session JWT. If an error is thrown the session authentication has failed.
const resp = await stytchClient.sessions.authenticateJwt(stytchSessionJWT);
const resp = await stytchClient.sessions.authenticateJwt({session_jwt: stytchSessionJWT});
// End the timer
const end = process.hrtime(start);

Expand Down

0 comments on commit 765957d

Please sign in to comment.