Skip to content

Commit

Permalink
Use correct key typealias
Browse files Browse the repository at this point in the history
  • Loading branch information
ptoffy committed Feb 12, 2024
1 parent e06254b commit fd06c46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public class AppStoreServerAPIClient {
aud: .init(value: AppStoreServerAPIClient.appStoreConnectAudience),
iat: .init(value: Date())
)
let key: ECDSAKey<P256> = try ECDSAKey.private(pem: self.signingKey.pemRepresentation)
let key = try ES256Key.private(pem: self.signingKey.pemRepresentation)
await keys.addES256(key: key)
return try await keys.sign(payload, typ: "JWT", kid: JWKIdentifier(stringLiteral: self.keyId))
}
Expand Down

0 comments on commit fd06c46

Please sign in to comment.