Options
All
  • Public
  • Public/Protected
  • All
Menu

Verify table service.

Hierarchy

  • VerifyService

Index

Constructors

constructor

Methods

createVerification

  • createVerification(userID: string): Promise<NBVerify>

deleteUnverifiedUser

  • deleteUnverifiedUser(verifyID: string): Promise<void>

deleteVerification

  • deleteVerification(verifyID: string): Promise<void>

getUserByVerification

  • getUserByVerification(verifyID: string): Promise<NBUser>
  • Get the user associated with a verification record.

    Parameters

    • verifyID: string

      The verification record's ID.

    Returns Promise<NBUser>

    The user associated with the verification record.

getVerification

  • getVerification(verifyID: string): Promise<NBVerify>

getVerificationByUserID

  • getVerificationByUserID(userID: string): Promise<NBVerify>
  • Get the verification record associated with a user.

    Parameters

    • userID: string

      The ID of the user associated with the verification record.

    Returns Promise<NBVerify>

    The verification record associated with the user.

getVerifications

  • getVerifications(): Promise<NBVerify[]>

pruneVerifications

  • pruneVerifications(): Promise<void>

verificationExists

  • verificationExists(verifyID: string): Promise<boolean>
  • Determine whether or not a verification record exists.

    Parameters

    • verifyID: string

      The verification ID.

    Returns Promise<boolean>

    Whether or not the verification record exists.

verificationExistsByUserID

  • verificationExistsByUserID(userID: string): Promise<boolean>
  • Determine whether or not a verification record exists for a given user ID.

    Parameters

    • userID: string

      The ID of the user associated with the verification record.

    Returns Promise<boolean>

    Whether or not the verification record exists for the given user ID.

verifyUser

  • verifyUser(verifyID: string): Promise<void>

Generated using TypeDoc