@propelauth/express
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -7,2 +7,3 @@ import { Org, User, UserMetadata } from "./user"; | ||
export declare function fetchTokenVerificationMetadata(authUrl: URL, apiKey: string, manualTokenVerificationMetadata?: TokenVerificationMetadata): Promise<TokenVerificationMetadata>; | ||
export declare function fetchUserMetadataByUserIdWithIdCheck(authUrl: URL, apiKey: string, userId: string, includeOrgs?: boolean): Promise<UserMetadata | null>; | ||
export declare function fetchUserMetadataByQuery(authUrl: URL, apiKey: string, pathParam: string, query: any): Promise<UserMetadata | null>; | ||
@@ -58,1 +59,12 @@ export declare function fetchBatchUserMetadata(authUrl: URL, apiKey: string, type: string, values: string[], keyFunction: (x: UserMetadata) => string, includeOrgs?: boolean): Promise<{ | ||
export declare function createUser(authUrl: URL, apiKey: string, createUserRequest: CreateUserRequest): Promise<User>; | ||
export declare type UpdateUserMetadataRequest = { | ||
username?: string; | ||
firstName?: string; | ||
lastName?: string; | ||
}; | ||
export declare function updateUserMetadata(authUrl: URL, apiKey: string, userId: string, updateUserMetadataRequest: UpdateUserMetadataRequest): Promise<boolean>; | ||
export declare type UpdateUserEmailRequest = { | ||
newEmail: string; | ||
requireEmailConfirmation: boolean; | ||
}; | ||
export declare function updateUserEmail(authUrl: URL, apiKey: string, userId: string, updateUserEmail: UpdateUserEmailRequest): Promise<boolean>; |
/// <reference types="qs" /> | ||
import { NextFunction, Request, Response } from "express"; | ||
import { CreateUserRequest, OrgQuery, OrgQueryResponse, TokenVerificationMetadata, UsersInOrgQuery, UsersPagedResponse, UsersQuery } from "./api"; | ||
import { CreateUserRequest, OrgQuery, OrgQueryResponse, TokenVerificationMetadata, UpdateUserEmailRequest, UpdateUserMetadataRequest, UsersInOrgQuery, UsersPagedResponse, UsersQuery } from "./api"; | ||
import { Org, User, UserMetadata, UserRole } from "./user"; | ||
@@ -43,2 +43,4 @@ export declare type AuthOptions = { | ||
createUser: (createUserRequest: CreateUserRequest) => Promise<User>; | ||
updateUserMetadata: (userId: string, updateUserMetadataRequest: UpdateUserMetadataRequest) => Promise<boolean>; | ||
updateUserEmail: (userId: string, updateUserEmailRequest: UpdateUserEmailRequest) => Promise<boolean>; | ||
UserRole: typeof UserRole; | ||
@@ -45,0 +47,0 @@ }; |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"license": "MIT", | ||
@@ -10,0 +10,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
947586
19
9934