@propelauth/express
Advanced tools
Comparing version 1.2.2 to 2.0.0-beta.1
@@ -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>; |
/// <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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
875469
9283
2