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 1
1
import { kindeAuthClient } from '$lib/KindeSDK.js' ;
2
2
import { kindeConfiguration } from '$lib/index.js' ;
3
3
import { parseSearchParamsToObject } from '$lib/utils/index.js' ;
4
- import type { SessionManager } from '@kinde-oss/kinde-typescript-sdk' ;
4
+ import { type SessionManager , validateClientSecret } from '@kinde-oss/kinde-typescript-sdk' ;
5
5
import { error , redirect , type RequestEvent } from '@sveltejs/kit' ;
6
6
import { version } from '$app/environment' ;
7
7
@@ -29,7 +29,7 @@ export async function handleAuth({
29
29
redirectURL : kindeConfiguration . redirectURL || '' ,
30
30
audience : kindeConfiguration . audience || '' ,
31
31
scope : kindeConfiguration . scope || '' ,
32
- clientSecret : kindeConfiguration . clientSecret . match ( '[a-z0-9]{32} ')
32
+ clientSecret : validateClientSecret ( kindeConfiguration . clientSecret || ' ')
33
33
? 'Set correctly'
34
34
: 'Not set correctly' ,
35
35
loginRedirectURL : kindeConfiguration . loginRedirectURL || '' ,
You can’t perform that action at this time.
0 commit comments