apple-music-token-generator
apple-music-token-generator copied to clipboard
Token expires after some time
Is there a way to generate a token that lasts forever? No need to regenrate one every once in a while? We are using this in a front end app.
Pretty sure that's how the access token works. Access tokens are short lived, and refresh tokens last longer.
https://developer.apple.com/documentation/sign_in_with_apple/generate_and_validate_tokens
The node version of this script sets the token's expiration to 180 days from now (code).
I made a PR to update this behavior to 180 days here: https://github.com/pelauimagineering/apple-music-token-generator/pull/24 . I just tested locally and it seems to work