builder() ->issuedBy($teamId) ->issuedAt($now) ->expiresAt($now->addHour()) ->permittedFor('https://appleid.apple.com') ->relatedTo($clientId) ->withHeader('kid', $keyId) ->getToken($jwtConfig->signer(), $jwtConfig->signingKey()); return $token->toString(); } }