AbstractJwt Declares JWT claim methods required by session and identity helpers.
The identity session layer uses the active claim key to read and write the session payload, so any class using this abstract trait must provide the JWT claim lifecycle from
See: \PhalconKit\Identity\Traits\Interfaces\JwtInterface. Full name: \PhalconKit\Identity\Traits\Abstracts\AbstractJwt Methods getJwt public getJwt ( bool $refresh = false ) : array { jwt : string , refreshToken : string , refreshed : bool }
This method is abstract . Parameters: Parameter Type Description $refresh bool
getClaim public getClaim ( bool $refresh = false , bool $force = false ) : array < string , mixed >
This method is abstract . Parameters: Parameter Type Description $refresh bool $force bool
setClaim public setClaim ( array < string , mixed > $claim ) : void
This method is abstract . Parameters: Parameter Type Description $claim array
getJwtToken public getJwtToken ( string $id , array < string , mixed > $data = [], array < string , mixed > $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 < string , mixed >
This method is abstract . Parameters: Parameter Type Description $token string $claim ?string
getClaimFromAuthorization public getClaimFromAuthorization ( array < int , string > $authorization ) : array < string , mixed >
This method is abstract . Parameters: Parameter Type Description $authorization array