Skip to content

shared-sdk


Function: onAuthEvent()

onAuthEvent(listener): () => void

Defined in: lib/api/AuthEvents.ts:26

Subscribe to authentication lifecycle events.

Parameters

listener

Listener

Callback invoked on each auth event.

Returns

Unsubscribe function to remove the listener.

(): void

Returns

void