@accounts/password

@accounts/passwordGlobals

Index

Enumerations

Classes

Interfaces

Functions

Object literals

Functions

Const bcryptPassword

bcryptPassword(password: string): Promise‹string›

Defined in utils/encryption.ts:3

Parameters:

NameType
passwordstring

Returns: Promise‹string›


Const getUserResetTokens

getUserResetTokens(user: User): TokenRecord[]

Defined in utils/user.ts:4

Parameters:

NameType
userUser

Returns: TokenRecord[]


Const getUserVerificationTokens

getUserVerificationTokens(user: User): TokenRecord[]

Defined in utils/user.ts:8

Parameters:

NameType
userUser

Returns: TokenRecord[]


Const isEmail

isEmail(email?: string): boolean

Defined in utils/is-email.ts:1

Parameters:

NameType
email?string

Returns: boolean


Const verifyPassword

verifyPassword(password: string, hash: string): Promise‹boolean›

Defined in utils/encryption.ts:9

Parameters:

NameType
passwordstring
hashstring

Returns: Promise‹boolean›

Object literals

Const defaultOptions

defaultOptions: object

Defined in accounts-password.ts:133

errors

errors: ErrorMessages

Defined in accounts-password.ts:145

hashPassword

hashPassword: bcryptPassword = bcryptPassword

Defined in accounts-password.ts:158

invalidateAllSessionsAfterPasswordChanged

invalidateAllSessionsAfterPasswordChanged: boolean = false

Defined in accounts-password.ts:143

invalidateAllSessionsAfterPasswordReset

invalidateAllSessionsAfterPasswordReset: boolean = true

Defined in accounts-password.ts:142

notifyUserAfterPasswordChanged

notifyUserAfterPasswordChanged: boolean = true

Defined in accounts-password.ts:140

passwordEnrollTokenExpiration

passwordEnrollTokenExpiration: number = 2592000000

Defined in accounts-password.ts:139

passwordResetTokenExpiration

passwordResetTokenExpiration: number = 259200000

Defined in accounts-password.ts:137

removeAllResetPasswordTokensAfterPasswordChanged

removeAllResetPasswordTokensAfterPasswordChanged: boolean = true

Defined in accounts-password.ts:144

returnTokensAfterResetPassword

returnTokensAfterResetPassword: boolean = false

Defined in accounts-password.ts:141

sendVerificationEmailAfterSignup

sendVerificationEmailAfterSignup: boolean = false

Defined in accounts-password.ts:146

verifyEmailTokenExpiration

verifyEmailTokenExpiration: number = 259200000

Defined in accounts-password.ts:135

verifyPassword

verifyPassword: verifyPassword

Defined in accounts-password.ts:159

validateEmail

validateEmail(email?: string): boolean

Defined in accounts-password.ts:147

Parameters:

NameType
email?string

Returns: boolean

validatePassword

validatePassword(password?: string): boolean

Defined in accounts-password.ts:150

Parameters:

NameType
password?string

Returns: boolean

validateUsername

validateUsername(username?: string): boolean

Defined in accounts-password.ts:153

Parameters:

NameType
username?string

Returns: boolean


Const errors

errors: object

Defined in errors.ts:3

emailAlreadyExists

emailAlreadyExists: string = "Email already exists"

Defined in errors.ts:21

incorrectPassword

incorrectPassword: string = "Incorrect password"

Defined in errors.ts:7

invalidCredentials

invalidCredentials: string = "Invalid credentials"

Defined in errors.ts:15

invalidEmail

invalidEmail: string = "Invalid email"

Defined in errors.ts:11

invalidNewPassword

invalidNewPassword: string = "Invalid new password"

Defined in errors.ts:13

invalidPassword

invalidPassword: string = "Invalid password"

Defined in errors.ts:12

invalidToken

invalidToken: string = "Invalid token"

Defined in errors.ts:14

invalidUsername

invalidUsername: string = "Invalid username"

Defined in errors.ts:10

matchFailed

matchFailed: string = "Match failed"

Defined in errors.ts:9

noEmailSet

noEmailSet: string = "User has no email set"

Defined in errors.ts:6

noPasswordSet

noPasswordSet: string = "User has no password set"

Defined in errors.ts:5

resetPasswordLinkExpired

resetPasswordLinkExpired: string = "Reset password link expired"

Defined in errors.ts:18

resetPasswordLinkUnknownAddress

resetPasswordLinkUnknownAddress: string = "Reset password link is for unknown address"

Defined in errors.ts:19

unrecognizedOptionsForLogin

unrecognizedOptionsForLogin: string = "Unrecognized options for login request"

Defined in errors.ts:8

userNotFound

userNotFound: string = "User not found"

Defined in errors.ts:4

usernameAlreadyExists

usernameAlreadyExists: string = "Username already exists"

Defined in errors.ts:20

usernameOrEmailRequired

usernameOrEmailRequired: string = "Username or Email is required"

Defined in errors.ts:22

verifyEmailLinkExpired

verifyEmailLinkExpired: string = "Verify email link expired"

Defined in errors.ts:16

verifyEmailLinkUnknownAddress

verifyEmailLinkUnknownAddress: string = "Verify email link is for unknown address"

Defined in errors.ts:17