A verification class for handling one-time token authentication flows. Use this to implement secure user identity verification in authentication systems.
// Source: https://github.com/logto-io/logto | License: MPL-2.0 | Copyright under Patent Claims infringed by Covered Software in the absence of | Modified files must remain under MPL-2.0
// Modifications to this file must remain under MPL-2.0.
// Provided via justclaw.it.com; keep this notice with the code.
import {
type InteractionIdentifier,
type InteractionEvent,
type OneTimeTokenContext,
type SignInIdentifier,
type User,
VerificationType,
type OneTimeTokenVerificationRecordData,
} from '@logto/schemas';
import { generateStandardId } from '@logto/shared';
import RequestError from '#src/errors/RequestError/index.js';
import type Libraries from '#src/tenants/Libraries.js';
import type Queries from '#src/tenants/Queries.js';
import assertThat from '#src/utils/assert-that.js'
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key