extends |
Token |
|---|---|
implements |
TokenGrantType |
An OAuth refresh token.
Refresh tokens are perpetual bearer tokens from which access tokens can be granted. As such, it implements the TokenGrantType interface.
To create and encode a token, use the create() static function. To parse an encoded token, use the decode() static function.
| Methods | ||
|---|---|---|
protected
|
__construct()
|
# |
public
|
getType(): string
|
# |
public
static
|
decode(string $encoded): RefreshToken
|
# |
public
static
|
create(
Authorization $authorization,
array<string> $scope = [],
TokenGrantType $source = null,
array<string, mixed> $additional = [],
): RefreshToken|null
|
# |
public
|
getGrantRef()
|
# |
| Constants inherited from SimpleID\Protocols\OAuth\Token |
|---|
|
| Properties inherited from SimpleID\Protocols\OAuth\Token |
|---|
$branca, $id, $authorization, $scope, $expire, $grant_ref, $additional, $encoded, $is_parsed |