Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@8base/api-token-auth-client

Package Overview
Dependencies
Maintainers
5
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@8base/api-token-auth-client - npm Package Compare versions

Comparing version 1.3.2 to 1.4.0

1

dist/ApiTokenAuthClient.d.ts

@@ -13,2 +13,3 @@ import { IAuthState, IAuthClient, IStorageOptions } from '@8base/utils';

getState(): IAuthState;
getTokenInfo(): unknown;
setState(state: IAuthState): void;

@@ -15,0 +16,0 @@ purgeState(): void;

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("@8base/utils");
const jwt_decode_1 = __importDefault(require("jwt-decode"));
/**

@@ -18,2 +22,8 @@ * Creates instacne of the api token auth client

}
getTokenInfo() {
if (!this.apiToken) {
return undefined;
}
return jwt_decode_1.default(this.apiToken) || undefined;
}
setState(state) {

@@ -20,0 +30,0 @@ this.storageAPI.setState(Object.assign({}, state, { token: this.apiToken }));

5

package.json
{
"name": "@8base/api-token-auth-client",
"version": "1.3.2",
"version": "1.4.0",
"author": "8base",

@@ -15,3 +15,4 @@ "repository": "https://github.com/8base/sdk",

"dependencies": {
"@8base/utils": "^1.3.2"
"@8base/utils": "^1.4.0",
"jwt-decode": "^3.0.0-beta.2"
},

@@ -18,0 +19,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc