MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / unset_auth_profile

Method unset_auth_profile

crates/chat-cli/src/database/mod.rs:267–270  ·  view source on GitHub ↗

Unset the current user profile used to determine API endpoints.

(&mut self)

Source from the content-addressed store, hash-verified

265
266 /// Unset the current user profile used to determine API endpoints.
267 pub fn unset_auth_profile(&mut self) -> Result<(), DatabaseError> {
268 self.delete_entry(Table::State, CODEWHISPERER_PROFILE_KEY)?;
269 self.delete_entry(Table::State, CUSTOMIZATION_STATE_KEY)
270 }
271
272 /// Get the client ID used for telemetry requests.
273 pub fn get_client_id(&mut self) -> Result<Option<Uuid>, DatabaseError> {

Callers 1

logoutFunction · 0.80

Calls 1

delete_entryMethod · 0.80

Tested by

no test coverage detected