Skip to content

Auth0 Identity Verification — Identity Verification and Proofing

DodaTech Updated 2026-06-28 1 min read

In this tutorial, you'll learn about Auth0 Identity Verification. We cover key concepts, practical examples, and best practices to help you understand and apply this topic effectively.

Auth0 identity verification ensures users are who they claim to be through multiple verification factors.

// Email verification configuration
const connection = await auth0.connections.update(
  { id: 'con_username_password' },
  {
    options: {
      passwordPolicy: 'good',
      requires_username: false,
      validation: {
        email: {
          enabled: true,
          verification: {
            enabled: true,
            time: 86400  // 24 hours to verify
          }
        }
      }
    }
  }
);

// Trigger email verification via Action
exports.onExecutePostLogin = async (event, api) => {
  if (!event.user.email_verified && event.user.identities[0].provider === 'auth0') {
    api.authentication.redirect({
      url: `https://{tenant}.auth0.com/lo/resend?email=${event.user.email}`
    });
  }
};

// Verify identity level before sensitive operations
async function requireVerifiedIdentity(req, res, next) {
  const token = req.headers.authorization.split(' ')[1];
  const decoded = jwt.decode(token);

  if (!decoded.email_verified) {
    return res.status(403).json({
      error: 'identity_verification_required',
      message: 'Please verify your email before running sensitive scans'
    });
  }

  if (decoded.phone_verified !== true && req.body.scan_type === 'deep') {
    return res.status(403).json({
      error: 'phone_verification_required',
      message: 'Deep scans require phone verification'
    });
  }

  next();
}

Identity verification provides assurance levels appropriate to the sensitivity of operations being performed.

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro