Skip to content

closeRemindPasswordModal(): Promise<void>

The closeRemindPasswordModal is an asynchronous method that allows to close a modal with the remind password form inside.

Returned value

A returned value has a type of Promise<void> because of potential additional animations and transitions occurring while closing a modal.

Example

In this example we make a AuthenticationApi call to close a remind password modal.

useStorefront(async (storefront) => {
    const authenticationApi = await storefront.getApi('AuthenticationApi');

    await authenticationApi.closeRemindPasswordModal();
});

Authentication API methods reference