Properties
Optional
verificationService
Methods
getById
- getById(id: bigint): Promise<undefined | User>
-
Returns Promise<undefined | User>
getByIdList
- getByIdList(ids: bigint[]): Promise<User[]>
-
Returns Promise<User[]>
loginByPassword
- loginByPassword(__namedParameters: { email?: string; username?: string }, password: string): Promise<User>
-
Parameters
-
__namedParameters: { email?: string; username?: string }
-
Optional
email?: string
-
Optional
username?: string
-
password: string
Returns Promise<User>
registerByEmail
- registerByEmail(email: string, password: string): Promise<User>
-
Parameters
-
email: string
-
password: string
Returns Promise<User>
registerByUsername
- registerByUsername(username: string, password: string): Promise<User>
-
Parameters
-
username: string
-
password: string
Returns Promise<User>
Private
validateEmail
- validateEmail(email: string): Promise<void>
-
Returns Promise<void>
Private
validateUsername
- validateUsername(username: string): Promise<void>
-
Returns Promise<void>
verifyEmail
- verifyEmail(code?: string, user?: User): Promise<undefined | User>
-
Parameters
-
code: string = ''
-
Optional
user: User
Returns Promise<undefined | User>