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

@obelisk/client

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@obelisk/client - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

32

lib/obelisk-client.js

@@ -132,15 +132,21 @@ "use strict";

return ajax_1.ajax.post(tokenUrl, params, headers).pipe(operators_1.flatMap(resp => {
const authResponse = resp.response;
const pat = new auth_1.Token(authResponse.access_token);
const patRefresh = new auth_1.Token(authResponse.refresh_token);
const idtok = new auth_1.Token(authResponse.id_token);
// store in memory
this._tokens.pat = pat;
this._tokens.patRefresh = patRefresh;
this._tokens.idtoken = idtok;
// store logged in + expiration
this._storage.add('logInfo', { authenticated: true, expires: pat.getExpiresAt() });
// this.scheduleTokenRefresh(pat, patRefresh);
this.authOver$.next();
return rxjs_1.of(true);
if (resp.status >= 400) {
this.clearClientCredentials();
return rxjs_1.of(false);
}
else {
const authResponse = resp.response;
const pat = new auth_1.Token(authResponse.access_token);
const patRefresh = new auth_1.Token(authResponse.refresh_token);
const idtok = new auth_1.Token(authResponse.id_token);
// store in memory
this._tokens.pat = pat;
this._tokens.patRefresh = patRefresh;
this._tokens.idtoken = idtok;
// store logged in + expiration
this._storage.add('logInfo', { authenticated: true, expires: pat.getExpiresAt() });
// this.scheduleTokenRefresh(pat, patRefresh);
this.authOver$.next();
return rxjs_1.of(true);
}
}), operators_1.switchMap(() => this.getNewRpt()));

@@ -147,0 +153,0 @@ }

{
"name": "@obelisk/client",
"version": "2.3.0",
"version": "2.3.1",
"description": "Typescript client to interact with Obelisk on a higher level than the regular ReST API calls.",

@@ -5,0 +5,0 @@ "keywords": [

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