WorkOS PHP SDK

RevokeSession
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$returnTo  : string|null
The URL to redirect the user to after session revocation.
$sessionId  : string
The ID of the session to revoke. This can be extracted from the `sid` claim of the access token.

Methods

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

Properties

$returnTo

The URL to redirect the user to after session revocation.

public string|null $returnTo = null

$sessionId

The ID of the session to revoke. This can be extracted from the `sid` claim of the access token.

public string $sessionId

Methods

__construct()

public __construct(string $sessionId[, string|null $returnTo = null ]) : mixed
Parameters
$sessionId : string
$returnTo : string|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>

toArray()

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

        
On this page

Search results