WorkOS PHP SDK

AuthenticationFactorTotp
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

TOTP-based authentication factor details.

Table of Contents

Interfaces

JsonSerializable

Properties

$issuer  : string
Your application or company name displayed in the user's authenticator app. Defaults to your WorkOS team name.
$user  : string
The user's account name displayed in their authenticator app. Defaults to the user's email.

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

$issuer

Your application or company name displayed in the user's authenticator app. Defaults to your WorkOS team name.

public string $issuer

$user

The user's account name displayed in their authenticator app. Defaults to the user's email.

public string $user

Methods

__construct()

public __construct(string $issuer, string $user) : mixed
Parameters
$issuer : string
$user : string

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results