Function logout

Source
pub fn logout() -> Result<(), ApiError>
Expand description

Deletes the login credentials file

ยงErrors

  • returns [BackendError::NotLoggedIn] if the user is not logged in when attempting to log out

  • returns [BackendError::DeleteCredentialsFile] if ~/.grafbase/credentials.json could not be deleted

  • returns [BackendError::ReadCredentialsFile] if ~/.grafbase/credentials.json could not be read