New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-authenticators

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-authenticators - npm Package Compare versions

Comparing version 1.0.0-pre-1 to 1.0.0-pre-2

5

lib/lib/oauth.d.ts

@@ -20,3 +20,3 @@ export declare class OAuthError extends Error {

}
export declare const getConsentUrl: ({ addNonce, consentUrl, clientIDQueryName, clientID, redirectUri, scope, responseType, enablePKCE, additionalParams, }: {
export declare const getConsentUrl: ({ addNonce, consentUrl, clientIDQueryName, clientID, redirectUri, scope, responseType, enablePKCE, additionalParams, state, }: {
clientID: string;

@@ -31,2 +31,3 @@ redirectUri: string;

addNonce?: boolean | undefined;
state?: string | undefined;
}) => Promise<{

@@ -36,3 +37,3 @@ url: string;

nonce?: `${string}-${string}-${string}-${string}-${string}` | undefined;
state: `${string}-${string}-${string}-${string}-${string}`;
state: string;
verifier: string;

@@ -39,0 +40,0 @@ };

4

lib/lib/oauth.js

@@ -46,4 +46,4 @@ "use strict";

exports.OAuthError = OAuthError;
const getConsentUrl = ({ addNonce = false, consentUrl, clientIDQueryName = 'client_id', clientID, redirectUri, scope, responseType = 'code', enablePKCE, additionalParams, }) => __awaiter(void 0, void 0, void 0, function* () {
const state = (0, crypto_1.randomUUID)();
const getConsentUrl = ({ addNonce = false, consentUrl, clientIDQueryName = 'client_id', clientID, redirectUri, scope, responseType = 'code', enablePKCE, additionalParams, state, }) => __awaiter(void 0, void 0, void 0, function* () {
state !== null && state !== void 0 ? state : (state = (0, crypto_1.randomUUID)());
// https://datatracker.ietf.org/doc/html/rfc7636#section-4.1

@@ -50,0 +50,0 @@ // rfc7636 requires key length between 43-128

@@ -15,3 +15,3 @@ export interface IAppleEnv {

nonce?: `${string}-${string}-${string}-${string}-${string}` | undefined;
state: `${string}-${string}-${string}-${string}-${string}`;
state: string;
verifier: string;

@@ -18,0 +18,0 @@ };

@@ -12,3 +12,3 @@ import { OAuthCallbackQuery, OAuthState } from '../lib/oauth';

nonce?: `${string}-${string}-${string}-${string}-${string}` | undefined;
state: `${string}-${string}-${string}-${string}-${string}`;
state: string;
verifier: string;

@@ -15,0 +15,0 @@ };

@@ -11,3 +11,3 @@ import { OAuthCallbackQuery, OAuthState } from '../lib/oauth';

nonce?: `${string}-${string}-${string}-${string}-${string}` | undefined;
state: `${string}-${string}-${string}-${string}-${string}`;
state: string;
verifier: string;

@@ -14,0 +14,0 @@ };

@@ -11,3 +11,3 @@ import { OAuthCallbackQuery, OAuthState } from '../lib/oauth';

nonce?: `${string}-${string}-${string}-${string}-${string}` | undefined;
state: `${string}-${string}-${string}-${string}-${string}`;
state: string;
verifier: string;

@@ -14,0 +14,0 @@ };

@@ -12,3 +12,3 @@ import { OAuthCallbackQuery, OAuthState } from '../lib/oauth';

nonce?: `${string}-${string}-${string}-${string}-${string}` | undefined;
state: `${string}-${string}-${string}-${string}-${string}`;
state: string;
verifier: string;

@@ -15,0 +15,0 @@ };

@@ -11,3 +11,3 @@ import { OAuthCallbackQuery, OAuthState } from '../lib/oauth';

nonce?: `${string}-${string}-${string}-${string}-${string}` | undefined;
state: `${string}-${string}-${string}-${string}-${string}`;
state: string;
verifier: string;

@@ -14,0 +14,0 @@ };

@@ -12,3 +12,3 @@ import { OAuthCallbackQuery, OAuthState } from '../lib/oauth';

nonce?: `${string}-${string}-${string}-${string}-${string}` | undefined;
state: `${string}-${string}-${string}-${string}-${string}`;
state: string;
verifier: string;

@@ -15,0 +15,0 @@ };

@@ -11,3 +11,3 @@ import { OAuthCallbackQuery, OAuthState } from '../lib/oauth';

nonce?: `${string}-${string}-${string}-${string}-${string}` | undefined;
state: `${string}-${string}-${string}-${string}-${string}`;
state: string;
verifier: string;

@@ -14,0 +14,0 @@ };

@@ -11,3 +11,3 @@ import { OAuthCallbackQuery, OAuthState } from '../lib/oauth';

nonce?: `${string}-${string}-${string}-${string}-${string}` | undefined;
state: `${string}-${string}-${string}-${string}-${string}`;
state: string;
verifier: string;

@@ -14,0 +14,0 @@ };

@@ -12,3 +12,3 @@ import { OAuthCallbackQuery, OAuthState } from '../lib/oauth';

nonce?: `${string}-${string}-${string}-${string}-${string}` | undefined;
state: `${string}-${string}-${string}-${string}-${string}`;
state: string;
verifier: string;

@@ -15,0 +15,0 @@ };

{
"name": "express-authenticators",
"version": "1.0.0-pre-1",
"version": "1.0.0-pre-2",
"description": "Third party authenticators in nodejs. Support various providers. Almost zero dependencies.",

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

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