Socket
Socket
Sign inDemoInstall

@propelauth/express

Package Overview
Dependencies
15
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.2 to 2.0.0-beta.1

3

dist/api.d.ts

@@ -5,2 +5,5 @@ import { UserMetadata } from "./user";

issuer: string;
roleNameToIndex: {
[role_name: string]: number;
};
};

@@ -7,0 +10,0 @@ export declare function fetchTokenVerificationMetadata(authUrl: URL, apiKey: string, manualTokenVerificationMetadata?: TokenVerificationMetadata): Promise<TokenVerificationMetadata>;

5

dist/auth.d.ts
/// <reference types="qs" />
import { NextFunction, Request, Response } from "express";
import { TokenVerificationMetadata } from "./api";
import { UserMetadata, UserRole } from "./user";
import { UserMetadata } from "./user";
export declare type AuthOptions = {

@@ -38,7 +38,6 @@ debugMode?: boolean;

}>;
UserRole: typeof UserRole;
};
export interface RequireOrgMemberArgs {
minimumRequiredRole?: UserRole;
minimumRequiredRole?: string;
orgIdExtractor?: (req: Request) => string;
}

@@ -10,4 +10,7 @@ import { OrgMemberInfo, User, UserMetadata } from "./user";

org?: OrgMemberInfo;
roleNameToIndex?: {
[role_name: string]: number;
};
}
}
}

@@ -17,11 +17,6 @@ export declare type User = {

};
export declare enum UserRole {
Member = 0,
Admin = 1,
Owner = 2
}
export declare type OrgMemberInfo = {
orgId: string;
orgName: string;
userRole: UserRole;
userRoleName: string;
};

@@ -28,0 +23,0 @@ export declare type OrgIdToOrgMemberInfo = {

@@ -7,3 +7,6 @@ {

},
"version": "1.2.2",
"version": "2.0.0-beta.1",
"publishConfig": {
"tag": "beta"
},
"license": "MIT",

@@ -10,0 +13,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc