Profile Verification Service (verifications/profile-verification.ts)

logto · packages/core/src/routes/interaction/verifications/profile-verification.ts · typescript · MPL-2.0
auth, security, lang:typescript, tag:verification

Verifies user profiles, identifiers, and password hashes during interaction flows. Reuse in identity and access management backends.

// 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 { Profile, User } from '@logto/schemas';
import { InteractionEvent, UsersPasswordEncryptionMethod } from '@logto/schemas';
import { argon2Verify } from 'hash-wasm';

import RequestError from '#src/errors/RequestError/index.js';
import type TenantContext from '#src/tenants/TenantContext.js';
import assertThat from '#src/utils/assert-that.js';

import { forgotPasswordProfileGuard } from '../types/guard.js';
import type {
  Identifier,
  SocialIdentifier,
  IdentifierVerifiedIn

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key