Auth Events #

auth:strategyAuthenticated #

ArgumentsTypeDescription
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:

PropertiesTypeDescription
strategy
string
Authentication strategy name
content
User
Authenticated user

The content user object has, among others, the following properties:

PropertiesTypeDescription
_id
string
User's kuid
profileIds
string[]
List of associated profiles