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 token with ES256 algorithm and includes necessary claims like issuer, audience, issued-at time, and expiration time.
Use Case Examples
- Automate the generation of JWT tokens to authenticate API requests to AppStore Connect.
- Use the node in workflows that require secure access to Apple's AppStore Connect services without manual token creation.
Output
JSON
token- The generated JWT token string for AppStore Connect authentication
Dependencies
- jsonwebtoken library for JWT signing
- An API key credential containing audience, API key ID, issuer ID, and private key for signing
Troubleshooting
- Common issues include invalid or missing credentials such as private key, API key ID, issuer ID, or audience, which will cause token generation to fail.
- Errors during token signing will throw exceptions; enabling 'continue on fail' allows the workflow to proceed with error details in output.
- Ensure the private key is correctly formatted and matches the expected ES256 algorithm requirements.