AbstractJwt
- Full name:
\PhalconKit\Identity\Traits\Abstracts\AbstractJwt
Methods
getJwt
public getJwt(bool $refresh = false): array
- This method is abstract. Parameters:
| Parameter | Type | Description |
$refresh | bool | |
getClaim
public getClaim(bool $refresh = false, bool $force = false): array
- This method is abstract. Parameters:
| Parameter | Type | Description |
$refresh | bool | |
$force | bool | |
setClaim
public setClaim(array $claim): void
- This method is abstract. Parameters:
| Parameter | Type | Description |
$claim | array | |
getJwtToken
public getJwtToken(string $id, array $data = [], array $options = []): string
- This method is abstract. Parameters:
| Parameter | Type | Description |
$id | string | |
$data | array | |
$options | array | |
getClaimFromToken
public getClaimFromToken(string $token, ?string $claim = null): array
- This method is abstract. Parameters:
| Parameter | Type | Description |
$token | string | |
$claim | ?string | |
getClaimFromAuthorization
public getClaimFromAuthorization(array $authorization): array
- This method is abstract. Parameters:
| Parameter | Type | Description |
$authorization | array | |