jex logout
Revoke the current session and remove local credentials.
Usage
jex logout
Behavior
- Calls
DELETE /api/v1/auth/sessions/currentto revoke the session server-side - Deletes
~/.jex/token - Prints:
Logged out.
If the API call fails (e.g. no network), the local token is still deleted and a warning is printed. The session will expire server-side per the configured TTL.