fix(core): update

This commit is contained in:
2022-12-22 17:12:15 +01:00
commit 2e8d4a21a6
13 changed files with 4726 additions and 0 deletions

8
ts/index.ts Normal file
View File

@@ -0,0 +1,8 @@
import * as plugins from './webjwt.plugins.js';
export const getDataFromJwtString = <T = any>(jwtString: string): T => {
const splitted = jwtString.split('.');
const dataBase64 = splitted[1];
// @ts-ignore
return JSON.parse(atob(dataBase64));
}