Does clearrun login check my key with ClearRun?
No. clearrun login saves the key on your computer and does not contact api.clearrun.net. A wrong key is saved without an error. You find out on your first score.
Last updated
Why
The CLI prints the reason after it saves: scoring routes spend credits, and account routes use a browser session. So there is no free call to test a key with.
How to test a key
Run one short score:
clearrun score --text "The capital of France is Paris."
- A score means the key works. This uses credits.
401 Unauthorizedmeans the key is wrong. Create a new one.- 403
API_ACCESS_REQUIREDmeans the key is not a free developer key. A verified free account can create one. API access is turned off in account settings.means API access is off for the account.