This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "jwt" | |
| key_file = "Path to the private key" | |
| team_id = "Your Team ID" | |
| client_id = "The Service ID of the service you created" | |
| key_id = "The Key ID of the private key" | |
| validity_period = 180 # In days. Max 180 (6 months) according to Apple docs. | |
| private_key = OpenSSL::PKey::EC.new IO.read key_file |