#gizmo-api key
1 messages · Page 1 of 1 (latest)
it wouldn't, no
stripe-cli requires you to occasionally re-login, but your actual API keys sk_xxx/pk_xxxx don't expire or need to be rotated at any point (you can do that if you want to, but it doesn't happen automatically)
Thanks, karllekko. To be sure, when you say stripe-cli requires me to re-login, I don't need a new test key, I just need to log into the stripe dashboard? Even though the error on the cli is:
"code": "api_key_expired",
"doc_url": "https://stripe.com/docs/error-codes/api-key-expired",
"message": "Expired API Key provided: rk_test_*********************************************************************************************
",
"type": "invalid_request_error"```
you'd run stripe login again as far as I know
what happens is when you log in to stripe-cli it's given a special restricted key (rk_xxx == 'restricted key') to make API calls on your account, and that key has a duration and expires like that, doesn't apply to regular keys (or if you use --api-key= with stripe-cli instead of login, but I would recommend using login and just running it again when you get that error).