Back to Home
web2.auth

Verify Credentials

Web2 only (chainId = -1). Confirm email + password against the Blackbox principal store. Does not create a session — use web2.session.createManagedSession() separately after credentials are confirmed.

web2.auth.verifyCredentials

Email + Password Check

No session required. Requires a verified email address. Not available for Web3 wallet users.

// Web2 only — not for Web3 wallet users
const result = await web2.auth.verifyCredentials({
email: 'user@example.com',
password: 'securePassword123',
blackboxUrl,
});
// result.valid → true
// result.principalId → UUID

Console Output

Waiting for action...