Skip to main content

OryLoginSuccessEvent

type OryLoginSuccessEvent = {
flow: LoginFlow
flowType: FlowType.Login
method: string
session: Session
}

Event fired after a successful login, before the redirect.

session.identity contains the authenticated user. Use session.identity.id for analytics session stitching (e.g., mixpanel.identify).

Properties

flow

flow: LoginFlow

flowType

flowType: FlowType.Login

method

method: string

session

session: Session