#gizmo-api key

1 messages · Page 1 of 1 (latest)

weak elbow
#

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)

narrow mason
#

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"```
weak elbow
#

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).

narrow mason
#

Thank you. I just did stripe login from the cli which gave me a url I opened in my browser and logged in, it sais access granted and i may return to the CLI. However, I get the same error in the CLI when I try to start the webhooks

#

Nevermind, I ran it again and it's working now