Skip to content

Commit

Permalink
Merge pull request #133 from kinde-oss/deps/update-kinde-ts-sdk
Browse files Browse the repository at this point in the history
deps: update TS SDK and use validateClientSecret
  • Loading branch information
DanielRivers authored Mar 18, 2024
2 parents 059547d + a7b2d65 commit 2e8610f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
},
"dependencies": {
"@babel/preset-env": "^7.23.9",
"@kinde-oss/kinde-typescript-sdk": "^2.6.2",
"@kinde-oss/kinde-typescript-sdk": "^2.7.1",
"cookie": "^0.5.0",
"crypto-js": "^4.1.1",
"jwt-decode": "^3.1.2",
Expand Down
10 changes: 5 additions & 5 deletions src/handlers/health.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import RouterClient from '../routerClients/RouterClient';
import { config } from '../config/index'
import { NextResponse } from "next/server";
import { validateClientSecret } from '@kinde-oss/kinde-typescript-sdk';

/**
*
Expand All @@ -11,10 +11,10 @@ export const health = async () => {
apiPath: config.apiPath,
redirectURL: config.clientOptions.redirectURL,
postLoginRedirectURL: config.postLoginRedirectURL,
issuerURL: config.issuerURL,
clientID: config.clientID,
clientSecret: config.clientSecret.match('[a-z0-9]{32}') ? 'Set correctly' : 'Not set correctly',
postLogoutRedirectURL: config.postLogoutRedirectURL,
issuerURL: config.issuerURL,
clientID: config.clientID,
clientSecret: validateClientSecret(config.clientSecret) ? 'Set correctly' : 'Not set correctly',
postLogoutRedirectURL: config.postLogoutRedirectURL,
audience: config.audience,
cookieDomain: config.cookieDomain,
logoutRedirectURL: config.clientOptions.logoutRedirectURL
Expand Down

0 comments on commit 2e8610f

Please sign in to comment.