Skip to content

Commit

Permalink
Update service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb8005 committed Dec 13, 2023
1 parent dfd2ac4 commit e9ccae9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import { createActionPayload, decryptPayload } from "./action-payload.js";

export interface UserManagementOptions {
secretKey?: string; // this secretkey will be used to create encrypted strings that are sent to the user typically for account activation or password reset, if not given it will be generated automatically
tokenValidity?: number;
urlPrefix?: string;
tokenValidity?: number; // Number of seconds the JSON Web Token (JWT) is valid for.
urlPrefix?: string; // Base URL to be prefixed to the paths
notificationCallback?: (message: string) => Promise<void>; // ability to pass an object that will send a notification
emailCallback?: (subject: string, body: string, to: string) => Promise<void>;
emailCallback?: (subject: string, body: string, to: string) => Promise<void>; // Function to handle sending emails, receives subject, body, and recipient's email address.
}

class UserManagementService {
Expand Down

0 comments on commit e9ccae9

Please sign in to comment.