Auth Events #
auth:strategyAuthenticated #
| Arguments | Type | Description |
|---|---|---|
payload | object | Strategy name and authenticated user, see below |
This event is triggered after a successful user authentication, but before a token is generated.
It is also triggered before the auth:afterLogin event.
Pipes listening to this event receive a single object, and must resolve to an object of the same shape.
This event is not triggered for the intermediate steps of a multi-step authentication strategy (for instance, the first redirection call of an OAuth strategy), where the strategy does not return a user.
payload #
The provided payload object has the following properties:
| Properties | Type | Description |
|---|---|---|
strategy | string | Authentication strategy name |
content | User | Authenticated user |
The content user object has, among others, the following properties:
| Properties | Type | Description |
|---|---|---|
_id | string | User's kuid |
profileIds | string[] | List of associated profiles |