Skip to main content

Login Code Worker

Works off requestLoginCode: it looks up the user of the address in input.email and creates a login code challenge, whose USER_ACCOUNT_ACTION event queues the ACCOUNT_ACTION mail login-code. The result { sent } is false for an unknown address, a deleted user, an unverified address of an account with a password or passkey, or an exhausted request limit. See Login Codes.

Included in Base Preset

Registered automatically by registerBasePlugins() / registerAllPlugins().

import { pluginRegistry } from '@unchainedshop/core';
import { LoginCodePlugin } from '@unchainedshop/plugins/worker/login-code';

pluginRegistry.register(LoginCodePlugin);
PropertyValue
Keyshop.unchained.worker-plugin.login-code
TypeLOGIN_CODE
Retries0
Sourceworker/login-code