File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,12 @@ export const commitTokenToMemory = async (
37
37
token : string ,
38
38
type : TokenType
39
39
) : Promise < void > => {
40
- const tokenPayload = jwtDecode ( token ) ;
41
40
await sessionManager . setSessionItem ( type , token ) ;
42
41
if ( type === 'access_token' ) {
42
+ const tokenPayload = jwtDecode ( token ) ;
43
43
await sessionManager . setSessionItem ( 'access_token_payload' , tokenPayload ) ;
44
44
} else if ( type === 'id_token' ) {
45
+ const tokenPayload = jwtDecode ( token ) ;
45
46
await sessionManager . setSessionItem ( 'id_token_payload' , tokenPayload ) ;
46
47
await commitUserToMemoryFromToken ( sessionManager , token ) ;
47
48
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @kinde-oss/kinde-typescript-sdk" ,
3
- "version" : " 2.2.4 " ,
3
+ "version" : " 2.3.0 " ,
4
4
"description" : " Kinde Typescript SDK" ,
5
5
"main" : " dist-cjs/index.js" ,
6
6
"module" : " dist/index.js" ,
You can’t perform that action at this time.
0 commit comments