File tree Expand file tree Collapse file tree 4 files changed +20
-5
lines changed Expand file tree Collapse file tree 4 files changed +20
-5
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.4.0 "
47
+ "@kinde-oss/kinde-typescript-sdk" : " ^2.6.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
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
2
// @ts -nocheck
3
3
import { env } from '$env/dynamic/private' ;
4
+ import { version } from '$app/environment' ;
4
5
5
6
export const kindeConfiguration = {
6
7
authDomain : env . KINDE_ISSUER_URL ,
@@ -17,5 +18,7 @@ export const kindeConfiguration = {
17
18
export const kindeAPIConfiguration = {
18
19
audience : `${ env . KINDE_ISSUER_URL } /api` ,
19
20
clientId : env . KINDE_CLIENT_ID ,
20
- clientSecret : env . KINDE_CLIENT_SECRET
21
+ clientSecret : env . KINDE_CLIENT_SECRET ,
22
+ framework : 'Sveltekit' ,
23
+ frameworkVersion : version
21
24
} ;
Original file line number Diff line number Diff line change 1
- <h1 >Welcome to SvelteKit</h1 >
2
- <p >Visit <a href =" https://kit.svelte.dev" >kit.svelte.dev</a > to read the documentation</p >
1
+ <script >
2
+ import {version } from ' $app/environment' ;
3
+ </script >
4
+
5
+ <h1 >Welcome to Kinde Svelte SDK v{version }</h1 >
Original file line number Diff line number Diff line change 1
1
import adapter from '@sveltejs/adapter-auto' ;
2
2
import { vitePreprocess } from '@sveltejs/kit/vite' ;
3
+ import { readFileSync } from 'fs' ;
4
+ import { fileURLToPath } from 'url' ;
5
+
6
+ const file = fileURLToPath ( new URL ( 'package.json' , import . meta. url ) ) ;
7
+ const json = readFileSync ( file , 'utf8' ) ;
8
+ const pkg = JSON . parse ( json ) ;
3
9
4
10
/** @type {import('@sveltejs/kit').Config } */
5
11
const config = {
@@ -11,7 +17,10 @@ const config = {
11
17
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
12
18
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
13
19
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
14
- adapter : adapter ( )
20
+ adapter : adapter ( ) ,
21
+ version : {
22
+ name : pkg . version ,
23
+ }
15
24
}
16
25
} ;
17
26
You can’t perform that action at this time.
0 commit comments