Socket
Socket
Sign inDemoInstall

@propelauth/node

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@propelauth/node - npm Package Compare versions

Comparing version 2.1.9 to 2.1.10

dist/loginMethod.d.ts

6

dist/api/tokenVerificationMetadata.d.ts

@@ -0,1 +1,2 @@

import * as jose from "jose";
export declare type TokenVerificationMetadata = {

@@ -5,2 +6,7 @@ verifierKey: string;

};
export interface TokenVerificationMetadataWithPublicKey {
tokenVerificationMetadata: TokenVerificationMetadata;
publicKey: jose.KeyLike;
}
export declare function fetchTokenVerificationMetadata(authUrl: URL, integrationApiKey: string, manualTokenVerificationMetadata?: TokenVerificationMetadata): Promise<TokenVerificationMetadata>;
export declare const getTokenVerificationMetadataPromise: (tokenVerificationMetadataPromise: Promise<TokenVerificationMetadata | void>) => Promise<TokenVerificationMetadataWithPublicKey>;

3

dist/index.d.ts

@@ -8,2 +8,3 @@ export { AccessToken, CreateAccessTokenRequest } from "./api/accessToken";

export { AccessTokenCreationException, AddUserToOrgException, ApiKeyCreateException, ApiKeyDeleteException, ApiKeyFetchException, ApiKeyUpdateException, ApiKeyValidateException, BadRequestException, CreateOrgException, CreateUserException, ForbiddenException, MagicLinkCreationException, MigrateUserException, UnauthorizedException, UnexpectedException, UpdateUserEmailException, UpdateUserMetadataException, UserNotFoundException, } from "./exceptions";
export { CreatedOrg, CreatedUser, InternalOrgMemberInfo, InternalUser, Org, OrgIdToOrgMemberInfo, OrgMemberInfo, toOrgIdToOrgMemberInfo, toUser, User, UserAndOrgMemberInfo, UserMetadata, } from "./user";
export { LoginMethod, SamlLoginProvider, SocialLoginProvider } from "./loginMethod";
export { CreatedOrg, CreatedUser, InternalOrgMemberInfo, InternalUser, Org, OrgIdToOrgMemberInfo, OrgMemberInfo, toOrgIdToOrgMemberInfo, toUser, User, UserAndOrgMemberInfo, UserClass, UserMetadata, } from "./user";

@@ -0,1 +1,5 @@

import { InternalLoginMethod, LoginMethod } from "./loginMethod";
export declare type UserProperties = {
[key: string]: unknown;
};
export declare type User = {

@@ -13,6 +17,30 @@ userId: string;

};
properties?: {
[key: string]: unknown;
properties?: UserProperties;
loginMethod: LoginMethod;
};
export declare class UserClass {
userId: string;
orgIdToUserOrgInfo?: {
[orgId: string]: OrgMemberInfo;
};
};
email: string;
firstName?: string;
lastName?: string;
username?: string;
properties?: UserProperties;
loginMethod: LoginMethod;
legacyUserId?: string;
impersonatorUserId?: string;
constructor(user: User);
getOrg(orgId: string): OrgMemberInfo | undefined;
getOrgByName(orgName: string): OrgMemberInfo | undefined;
getUserProperty(key: string): unknown | undefined;
getOrgs(): OrgMemberInfo[];
isImpersonating(): boolean;
isRole(orgId: string, role: string): boolean;
isAtLeastRole(orgId: string, role: string): boolean;
hasPermission(orgId: string, permission: string): boolean;
hasAllPermissions(orgId: string, permissions: string[]): boolean;
static fromUser(user: User): UserClass;
}
export declare type Org = {

@@ -63,3 +91,3 @@ orgId: string;

readonly orgMetadata: {
[key: string]: any;
[key: string]: unknown;
};

@@ -73,2 +101,5 @@ readonly urlSafeOrgName: string;

}, urlSafeOrgName: string, userAssignedRole: string, userInheritedRolesPlusCurrentRole: string[], userPermissions: string[]);
get assignedRole(): string;
get permissions(): string[];
get inheritedRolesPlusCurrentRole(): string[];
isRole(role: string): boolean;

@@ -78,5 +109,3 @@ isAtLeastRole(role: string): boolean;

hasAllPermissions(permissions: string[]): boolean;
get assignedRole(): string;
get permissions(): string[];
get inheritedRolesPlusCurrentRole(): string[];
static fromJSON(json: string): OrgMemberInfo;
}

@@ -110,4 +139,2 @@ export declare type UserAndOrgMemberInfo = {

username?: string;
legacy_user_id?: string;
impersonator_user_id?: string;
metadata?: {

@@ -119,2 +146,5 @@ [key: string]: any;

};
login_method?: InternalLoginMethod;
legacy_user_id?: string;
impersonator_user_id?: string;
};

@@ -121,0 +151,0 @@ export declare function toUser(snake_case: InternalUser): User;

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

},
"version": "2.1.9",
"version": "2.1.10",
"license": "MIT",

@@ -16,3 +16,3 @@ "keywords": [

"dependencies": {
"jsonwebtoken": "^9.0.0"
"jose": "^5.2.0"
},

@@ -25,3 +25,2 @@ "devDependencies": {

"@types/jest": "^27.0.1",
"@types/jsonwebtoken": "^8.5.1",
"@types/uuid": "^8.3.1",

@@ -28,0 +27,0 @@ "jest": "^27.0.6",

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc