videosphere
    Preparing search index...

    Function issuePasswordResetToken

    • Creates a password reset token for a user, invalidating prior unused tokens.

      Parameters

      • userId: string

        Target user id.

      • ttlMs: number

        Token lifetime in milliseconds.

      • source: PasswordResetTokenSource

        Whether the token is for self-service forgot-password or admin reset.

      Returns Promise<{ token: string; expiresAt: Date }>

      The new token value and its absolute expiry time.