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/00_commitinfo_data.ts Normal file
View File

@@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@pushrocks/webjwt',
version: '1.0.2',
description: 'a package to handle jwt in the web'
}

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));
}

2
ts/webjwt.plugins.ts Normal file
View File

@@ -0,0 +1,2 @@
const removeme = {};
export { removeme };