Skip to main content

onEvent

A function that is called when the Stytch client makes a request. The function expects an argument of an event object, and the event object has type and data objects.

onError

A function that is called when an error occurs. The function expects an argument of an StytchError object, and the StytchError object has a message property.