KMP PHP API Reference

PlatformTotpChallengeService
in package

FinalYes

Consume each TOTP moving factor once across login, recovery and sensitive actions.

Table of Contents

Properties

$connection  : Connection
$verifier  : PlatformTotpVerifierInterface

Methods

__construct()  : mixed
Bind the challenge verifier and shared platform database.
consume()  : bool
Reserve an attempt and atomically consume the matched TOTP counter.

Properties

Methods

consume()

Reserve an attempt and atomically consume the matched TOTP counter.

public consume(string $userId, string|null $secretRef, string $code) : bool
Parameters
$userId : string
$secretRef : string|null
$code : string
Return values
bool
On this page

Search results