Skip to main content

DatabaseInterfaceServicePassword <CustomUser>

Hierarchy

Index

Methods

addEmail

  • addEmail(userId: string, newEmail: string, verified: boolean): Promise<void>
  • Parameters

    • userId: string
    • newEmail: string
    • verified: boolean

    Returns Promise<void>

addEmailVerificationToken

  • addEmailVerificationToken(userId: string, email: string, token: string): Promise<void>
  • Parameters

    • userId: string
    • email: string
    • token: string

    Returns Promise<void>

addResetPasswordToken

  • addResetPasswordToken(userId: string, email: string, token: string, reason: string): Promise<void>
  • Parameters

    • userId: string
    • email: string
    • token: string
    • reason: string

    Returns Promise<void>

createUser

findPasswordHash

  • findPasswordHash(userId: string): Promise<null | string>
  • Parameters

    • userId: string

    Returns Promise<null | string>

findUserByEmail

  • findUserByEmail(email: string): Promise<null | CustomUser>
  • Parameters

    • email: string

    Returns Promise<null | CustomUser>

findUserByEmailVerificationToken

  • findUserByEmailVerificationToken(token: string): Promise<null | CustomUser>
  • Parameters

    • token: string

    Returns Promise<null | CustomUser>

findUserByResetPasswordToken

  • findUserByResetPasswordToken(token: string): Promise<null | CustomUser>
  • Parameters

    • token: string

    Returns Promise<null | CustomUser>

findUserByUsername

  • findUserByUsername(username: string): Promise<null | CustomUser>
  • Parameters

    • username: string

    Returns Promise<null | CustomUser>

removeAllResetPasswordTokens

  • removeAllResetPasswordTokens(userId: string): Promise<void>
  • Parameters

    • userId: string

    Returns Promise<void>

removeEmail

  • removeEmail(userId: string, email: string): Promise<void>
  • Parameters

    • userId: string
    • email: string

    Returns Promise<void>

setPassword

  • setPassword(userId: string, newPassword: string): Promise<void>
  • Parameters

    • userId: string
    • newPassword: string

    Returns Promise<void>

setUsername

  • setUsername(userId: string, newUsername: string): Promise<void>
  • Parameters

    • userId: string
    • newUsername: string

    Returns Promise<void>

verifyEmail

  • verifyEmail(userId: string, email: string): Promise<void>
  • Parameters

    • userId: string
    • email: string

    Returns Promise<void>