WorkOS PHP SDK

UserManagementLoginRequest
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$externalAuthId  : string
Identifier provided when AuthKit redirected to your login page.
$user  : UserObject
The user to create or update in AuthKit.
$userConsentOptions  : array<string|int, UserConsentOption>|null
Array of [User Consent Options](https://workos.com/docs/reference/workos-connect/standalone/user-consent-options) to store with the session.

Methods

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

Properties

$userConsentOptions

Array of [User Consent Options](https://workos.com/docs/reference/workos-connect/standalone/user-consent-options) to store with the session.

public array<string|int, UserConsentOption>|null $userConsentOptions = null

Methods

__construct()

public __construct(string $externalAuthId, UserObject $user[, array<string|int, mixed>|null $userConsentOptions = null ]) : mixed
Parameters
$externalAuthId : string
$user : UserObject
$userConsentOptions : array<string|int, mixed>|null = null

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