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`

accessTokenstring

The access token string.

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

tokenTypestring

The type of the token, usually "Bearer".

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

expiresIninteger

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

php
$token->expiresIn; // 3600

idTokenstring|null

The ID token string, if available.

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

scopestring|null

The scope of the access token.

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

Released under the MIT License.