Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified sso-express-example/bun.lockb
Binary file not shown.
14 changes: 7 additions & 7 deletions sso-express-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
"build:css": "tailwindcss -i ./public/css/input.css -o ./public/css/output.css --watch"
},
"dependencies": {
"@scalekit-sdk/node": "^1.0.8",
"@scalekit-sdk/node": "^2.1.5",
"bcryptjs": "^2.4.3",
"dotenv": "^16.3.1",
"ejs": "^3.1.9",
"express": "^4.18.2",
"express-session": "^1.17.3",
"dotenv": "^16.6.1",
"ejs": "^3.1.10",
"express": "^4.21.2",
"express-session": "^1.18.2",
"jsonwebtoken": "^9.0.2",
"tailwindcss": "^3.3.3"
"tailwindcss": "^3.4.18"
},
"devDependencies": {
"nodemon": "^3.0.1"
"nodemon": "^3.1.10"
}
}
4 changes: 3 additions & 1 deletion sso-express-example/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ app.get('/callback', async (req, res) => {
// Get tokens from ScaleKit
const response = await scalekit.authenticateWithCode(code, redirectUri);
console.log(`response`, response);
const { user, idToken } = response;
const { user, idToken, accessToken } = response;
let userInfoPostValidation = await scalekit.validateToken(accessToken);
// console.log(`userInfoPostValidation`, userInfoPostValidation);
// Store user info in session
req.session.user = {
id: user.id,
Expand Down