src/NotifyStatusPoller/Authentication/JwtAuthenticator.php
/**
     * Generates the JWT token expected by the Sirius API.
     *
     * @return array<string>
     */
Generates the JWT token expected by the Sirius API.
@return array
Generates the JWT token expected by the Sirius API . @return array
public function createToken()
    {
        $token = (new Builder())
            ->withClaim('session-data', $this->sessionData)
            ->issuedAt(time())
            ->expiresAt(time() + 600)
            ->getToken(new Sha256(), new Key($this->jwtSecret));
        return [
            'Authorization' => 'Bearer ' . $token,
            'Content-Type' => 'application/json'
        ];
    }
public function createToken ( ) { $ token = ( new Builder ( ) ) -> withClaim ( 'session-data' , $ this -> sessionData ) -> issuedAt ( time ( ) ) -> expiresAt ( time ( ) + 600 ) -> getToken ( new Sha256 ( ) , new Key ( $ this -> jwtSecret ) ) ; return [ 'Authorization' => 'Bearer ' . $ token , 'Content-Type' => 'application/json' ] ; }
Generates the JWT token expected by the Sirius API.
Generates the JWT token expected by the Sirius API .