DatabaseInterfaceServicePassword <CustomUser>
- DatabaseInterfaceServicePassword
Methods
- addEmail(userId: string, newEmail: string, verified: boolean): Promise<void>
Parameters
userId: string
newEmail: string
verified: boolean
Returns Promise<void>
- addEmailVerificationToken(userId: string, email: string, token: string): Promise<void>
Parameters
userId: string
email: string
token: string
Returns Promise<void>
- addResetPasswordToken(userId: string, email: string, token: string, reason: string): Promise<void>
Parameters
userId: string
email: string
token: string
reason: string
Returns Promise<void>
Parameters
Returns Promise<string>
- findPasswordHash(userId: string): Promise<null | string>
Parameters
Returns Promise<null | string>
- findUserByEmail(email: string): Promise<null | CustomUser>
Parameters
Returns Promise<null | CustomUser>
- findUserByEmailVerificationToken(token: string): Promise<null | CustomUser>
Parameters
Returns Promise<null | CustomUser>
- findUserByResetPasswordToken(token: string): Promise<null | CustomUser>
Parameters
Returns Promise<null | CustomUser>
- findUserByUsername(username: string): Promise<null | CustomUser>
Parameters
Returns Promise<null | CustomUser>
- removeAllResetPasswordTokens(userId: string): Promise<void>
Parameters
Returns Promise<void>
- removeEmail(userId: string, email: string): Promise<void>
Parameters
userId: string
email: string
Returns Promise<void>
- setPassword(userId: string, newPassword: string): Promise<void>
Parameters
userId: string
newPassword: string
Returns Promise<void>
- setUsername(userId: string, newUsername: string): Promise<void>
Parameters
userId: string
newUsername: string
Returns Promise<void>
- verifyEmail(userId: string, email: string): Promise<void>
Parameters
userId: string
email: string
Returns Promise<void>