AppStore JWT Node

Generate JWT Token for AppStore Connect

Overview

This node generates a JWT (JSON Web Token) for AppStore Connect using provided credentials. It is useful for automating authentication processes when interacting with Apple's AppStore Connect API, such as for app management or reporting. The node signs the JWT with the ES256 algorithm, including claims like issuer, audience, issued-at time, and expiration time (20 minutes).

Use Case Examples

  1. Automate AppStore Connect API authentication for app data retrieval.
  2. Generate JWT tokens for secure API requests to Apple's services.

Output

JSON

  • token - The generated JWT token string

Dependencies

  • jsonwebtoken library for JWT signing

Troubleshooting

  • Common issues include invalid or improperly formatted private key, which can cause signing errors.
  • Errors related to missing or incorrect credentials (audience, API key, issuer ID, private key) will prevent token generation.
  • If the node fails on an item, enabling 'continue on fail' allows processing to continue for other items while capturing errors.

Links

Discussion