Mollie\Laravel\MollieConnectProvider::getUserByToken PHP Method

getUserByToken() protected method

Get the raw user for the given access token.
protected getUserByToken ( string $token ) : array
$token string
return array
    protected function getUserByToken($token)
    {
        $response = $this->getHttpClient()->get(static::MOLLIE_API_URL . '/v1/organizations/me', ['headers' => ['Authorization' => 'Bearer ' . $token]]);
        return json_decode($response->getBody(), true);
    }