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.0.8 to 1.0.9

2

build/auth-client.d.ts

@@ -42,3 +42,3 @@ import { AuthEvent, ObeliskAuth } from './auth';

url: string;
}>(event: T): Promise<void>;
}>(event: T): Promise<string>;
private saveCodeVerifier;

@@ -45,0 +45,0 @@ private loadCodeVerifier;

@@ -42,6 +42,8 @@ import { ObeliskConfig, Tokens } from './types';

* @param history Instance of the history object, defaults to window.history.
*
* @return Promise of the state string that was returned
*/
handleCodeExchange<T extends {
url: string;
}>(event: T): Promise<void>;
}>(event: T): Promise<string>;
}

@@ -48,0 +50,0 @@ export interface AuthEvent {

@@ -339,3 +339,3 @@ var AuthEventType;

_a.code_challenge_method = 'S256',
_a.state = state || Date.now() + '',
_a.state = state || encodeURIComponent(btoa('/')),
_a);

@@ -366,3 +366,3 @@ query = Object.entries(queryFields)

_a.code_challenge_method = 'S256',
_a.state = state || Date.now() + '',
_a.state = state || encodeURIComponent(btoa('/')),
_a);

@@ -380,3 +380,3 @@ return [2 /*return*/, Promise.resolve(queryFields)];

if (!event) {
return Promise.resolve();
return Promise.resolve('');
}

@@ -388,3 +388,4 @@ var url = event.url;

if (params.length === 2) {
var parts = params[1].split('&');
var hashIdx = params[1].lastIndexOf('#');
var parts = (hashIdx === -1 ? params[1] : params[1].slice(0, hashIdx)).split('&');
parts.forEach(function (part) {

@@ -410,9 +411,9 @@ var pp = part.split('=');

_this.tokens = _this.captureTokens(data);
return;
return query_1.state;
})
.then(function (_) {
.then(function (state) {
if (_this.eventHandler) {
_this.eventHandler({ type: AuthEventType.READY });
}
return Promise.resolve();
return Promise.resolve(state);
});

@@ -422,3 +423,3 @@ }

}
return Promise.resolve();
return Promise.resolve('');
};

@@ -425,0 +426,0 @@ ObeliskAuthClient.prototype.saveCodeVerifier = function (verifier) {

@@ -342,3 +342,3 @@ 'use strict';

_a.code_challenge_method = 'S256',
_a.state = state || Date.now() + '',
_a.state = state || encodeURIComponent(btoa('/')),
_a);

@@ -369,3 +369,3 @@ query = Object.entries(queryFields)

_a.code_challenge_method = 'S256',
_a.state = state || Date.now() + '',
_a.state = state || encodeURIComponent(btoa('/')),
_a);

@@ -383,3 +383,3 @@ return [2 /*return*/, Promise.resolve(queryFields)];

if (!event) {
return Promise.resolve();
return Promise.resolve('');
}

@@ -391,3 +391,4 @@ var url = event.url;

if (params.length === 2) {
var parts = params[1].split('&');
var hashIdx = params[1].lastIndexOf('#');
var parts = (hashIdx === -1 ? params[1] : params[1].slice(0, hashIdx)).split('&');
parts.forEach(function (part) {

@@ -413,9 +414,9 @@ var pp = part.split('=');

_this.tokens = _this.captureTokens(data);
return;
return query_1.state;
})
.then(function (_) {
.then(function (state) {
if (_this.eventHandler) {
_this.eventHandler({ type: exports.AuthEventType.READY });
}
return Promise.resolve();
return Promise.resolve(state);
});

@@ -425,3 +426,3 @@ }

}
return Promise.resolve();
return Promise.resolve('');
};

@@ -428,0 +429,0 @@ ObeliskAuthClient.prototype.saveCodeVerifier = function (verifier) {

{
"name": "@obelisk/auth",
"version": "1.0.8",
"version": "1.0.9",
"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