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

@obelisk/auth

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@obelisk/auth - npm Package Compare versions

Comparing version 1.4.0 to 1.5.2

7

build/index.es.js

@@ -266,3 +266,2 @@ var AuthEventType;

var BASE_PATH = '/auth';
var KEY_ID_TOK = 'obelisk:idTok';

@@ -296,3 +295,3 @@ var ObeliskAuthClient = /** @class */ (function () {

ObeliskAuthClient.prototype.getAuthPath = function () {
return BASE_PATH;
return this.config.httpBasePath;
};

@@ -358,3 +357,3 @@ /**

.join('&');
return [2 /*return*/, Promise.resolve(this.config.host + BASE_PATH + '/auth?' + query)];
return [2 /*return*/, Promise.resolve(this.getHostUrl() + this.getAuthPath() + '/auth?' + query)];
}

@@ -410,3 +409,3 @@ });

query_1.code_verifier = this.loadCodeVerifier();
return fetch("" + this.config.host + BASE_PATH + "/token", {
return fetch(this.getHostUrl() + this.getAuthPath() + '/token', {
body: JSON.stringify(query_1),

@@ -413,0 +412,0 @@ mode: 'cors',

@@ -269,3 +269,2 @@ 'use strict';

var BASE_PATH = '/auth';
var KEY_ID_TOK = 'obelisk:idTok';

@@ -299,3 +298,3 @@ var ObeliskAuthClient = /** @class */ (function () {

ObeliskAuthClient.prototype.getAuthPath = function () {
return BASE_PATH;
return this.config.httpBasePath;
};

@@ -361,3 +360,3 @@ /**

.join('&');
return [2 /*return*/, Promise.resolve(this.config.host + BASE_PATH + '/auth?' + query)];
return [2 /*return*/, Promise.resolve(this.getHostUrl() + this.getAuthPath() + '/auth?' + query)];
}

@@ -413,3 +412,3 @@ });

query_1.code_verifier = this.loadCodeVerifier();
return fetch("" + this.config.host + BASE_PATH + "/token", {
return fetch(this.getHostUrl() + this.getAuthPath() + '/token', {
body: JSON.stringify(query_1),

@@ -416,0 +415,0 @@ mode: 'cors',

export interface ObeliskConfig {
host: string;
httpBasePath: string;
clientId: string;

@@ -4,0 +5,0 @@ redirectUri?: string;

{
"name": "@obelisk/auth",
"version": "1.4.0",
"version": "1.5.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "build/index.js",

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