Class: abstract
ValidateUserService<T, R>
Extended by
Type Parameters
Type Parameter | Default type |
---|---|
T extends unknown [] | unknown [] |
R extends ReferenceIdInterface | ReferenceIdInterface |
Implements
Constructors
new ValidateUserService()
new ValidateUserService<
T
,R
>():ValidateUserService
<T
,R
>
Returns
ValidateUserService
<T
, R
>
Methods
isActive()
isActive(
user
):Promise
<boolean
>
Returns true if user is considered valid for authentication purposes.
Parameters
Parameter | Type |
---|---|
user | ReferenceIdInterface <string > & ReferenceActiveInterface <boolean > |
Returns
Promise
<boolean
>
Implementation of
ValidateUserServiceInterface
.isActive
Defined in
packages/nestjs-authentication/src/services/validate-user.service.ts:22 (opens in a new tab)
validateUser()
abstract
validateUser(...rest
):Promise
<R
>
Returns validated user
Parameters
Parameter | Type |
---|---|
...rest | T |
Returns
Promise
<R
>
Implementation of
ValidateUserServiceInterface
.validateUser
Defined in
packages/nestjs-authentication/src/services/validate-user.service.ts:17 (opens in a new tab)