Skip to main content

foundation-comms.onothertabreauthcomplete

Home > @genesislcap/foundation-comms > onOtherTabReauthComplete

onOtherTabReauthComplete() function​

Subscribes to storage events to detect when another tab has finished reauthenticating.

Signature:

export declare function onOtherTabReauthComplete(callback: () => void): () => void;

Parameters​

Parameter

Type

Description

callback

() => void

Called when the other tab finishes reauthentication

Returns:

() => void

A function to unsubscribe from the storage events