Class: AuthLocalGuard
Extends
object
Constructors
new AuthLocalGuard()
new AuthLocalGuard(
authenticationSettings
,reflector
):AuthLocalGuard
Parameters
Parameter | Type |
---|---|
authenticationSettings | AuthenticationSettingsInterface |
reflector | Reflector |
Returns
Inherited from
AuthGuard(AUTH_LOCAL_STRATEGY_NAME, { canDisable: false, }).constructor
Defined in
packages/nestjs-authentication/dist/guards/auth.guard.d.ts:6
Properties
Property | Modifier | Type | Inherited from |
---|---|---|---|
authenticationSettings | readonly | AuthenticationSettingsInterface | AuthGuard(AUTH_LOCAL_STRATEGY_NAME, { canDisable: false, }).authenticationSettings |
options | readonly | AuthGuardOptions | AuthGuard(AUTH_LOCAL_STRATEGY_NAME, { canDisable: false, }).options |
reflector | readonly | Reflector | AuthGuard(AUTH_LOCAL_STRATEGY_NAME, { canDisable: false, }).reflector |
Methods
canActivate()
canActivate(
context
):boolean
|Promise
<boolean
> |Observable
<boolean
>
Parameters
Parameter | Type |
---|---|
context | ExecutionContext |
Returns
boolean
| Promise
<boolean
> | Observable
<boolean
>
Inherited from
AuthGuard(AUTH_LOCAL_STRATEGY_NAME, { canDisable: false, }).canActivate
Defined in
packages/nestjs-authentication/dist/guards/auth.guard.d.ts:10