File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 44
44
"svelte" : " ^4.0.0"
45
45
},
46
46
"dependencies" : {
47
- "@kinde-oss/kinde-typescript-sdk" : " ^2.6 .2"
47
+ "@kinde-oss/kinde-typescript-sdk" : " ^2.7 .2"
48
48
},
49
49
"devDependencies" : {
50
50
"@playwright/test" : " ^1.28.1" ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import {kindeAuthClient} from '$lib/KindeSDK.js';
2
2
import { kindeConfiguration } from '$lib/index.js' ;
3
3
import { sessionStorage } from '$lib/sessionStorage/sessionStorage.js' ;
4
4
import { parseSearchParamsToObject } from '$lib/utils/index.js' ;
5
- import type { SessionManager } from '@kinde-oss/kinde-typescript-sdk' ;
5
+ import { type SessionManager , validateClientSecret } from '@kinde-oss/kinde-typescript-sdk' ;
6
6
import { error , redirect , type RequestEvent } from '@sveltejs/kit' ;
7
7
import { version } from '$app/environment' ;
8
8
@@ -33,7 +33,7 @@ export async function handleAuth({
33
33
redirectURL : kindeConfiguration . redirectURL || '' ,
34
34
audience : kindeConfiguration . audience || '' ,
35
35
scope : kindeConfiguration . scope || '' ,
36
- clientSecret : kindeConfiguration . clientSecret . match ( '[a-z0-9]{32} ')
36
+ clientSecret : validateClientSecret ( kindeConfiguration . clientSecret || ' ')
37
37
? 'Set correctly'
38
38
: 'Not set correctly' ,
39
39
loginRedirectURL : kindeConfiguration . loginRedirectURL || '' ,
You can’t perform that action at this time.
0 commit comments