Skip to content

OIDC Token Data DTO Reference ​

The ThingsTelemetry\Traccar\Dto\OidcTokenData represents the response from the OIDC token endpoint.

Properties ​

PropertyTypeDescription
accessTokenstringThe access token.
tokenTypestringThe token type (e.g., Bearer).
expiresInintThe expiration time in seconds.
idToken`stringnull`
scope`stringnull`

accessToken → string ​

The access token string.

php
$token->accessToken; // "access-token"

tokenType → string ​

The type of the token, usually "Bearer".

php
$token->tokenType; // "Bearer"

expiresIn → integer ​

The duration in seconds for which the access token is valid.

php
$token->expiresIn; // 3600

idToken → string|null ​

The ID token string, if available.

php
$token->idToken; // "id-token"

scope → string|null ​

The scope of the access token.

php
$token->scope; // "openid profile"

Released under the MIT License.