Skip to main content

@idpass/data-collect-core / ReauthenticateCallback

Type Alias: ReauthenticateCallback()

ReauthenticateCallback = () => Promise<void>

Defined in: components/internalSync/types.ts:51

Optional callback to silently re-authenticate when the stored token has expired. When provided, the sync machine calls this before failing with an auth error, giving the app a chance to refresh the token (e.g., by re-logging in with credentials stored in secure storage).

Returns

Promise<void>

A promise that resolves when a fresh token has been persisted to the auth storage, or rejects if re-authentication is not possible.