···1-use std::{env, time::Duration};
23use anyhow::Context;
4use cached::proc_macro::once;
···65 env::var("APPLE_DEVELOPER_TOKEN_KEY_ID").context("missing apple developer key ID")?;
66 let team_id =
67 env::var("APPLE_DEVELOPER_TOKEN_TEAM_ID").context("missing apple developer team ID")?;
68- let auth_key = env::var("APPLE_DEVELOPER_TOKEN_AUTH_KEY")
69- .context("missing apple developer auth key")?;
70- let key = EncodingKey::from_ec_pem(auth_key.as_bytes())
71- .context("failed to parse appple developer auth key")?;
72 let user_token = env::var("APPLE_USER_TOKEN").context("missing apple user token")?;
7374 Ok(Self {
···1+use std::{env, fs, time::Duration};
23use anyhow::Context;
4use cached::proc_macro::once;
···65 env::var("APPLE_DEVELOPER_TOKEN_KEY_ID").context("missing apple developer key ID")?;
66 let team_id =
67 env::var("APPLE_DEVELOPER_TOKEN_TEAM_ID").context("missing apple developer team ID")?;
68+ let auth_key = fs::read("keys/AuthKey.p8").context("missing apple developer auth key")?;
69+ let key = EncodingKey::from_ec_pem(&auth_key)
70+ .context("failed to parse apple developer auth key")?;
071 let user_token = env::var("APPLE_USER_TOKEN").context("missing apple user token")?;
7273 Ok(Self {