MCPcopy Create free account
hub / github.com/Moosync/Moosync / signout

Method signout

src-tauri/src/providers/spotify.rs:519–534  ·  view source on GitHub ↗
(&self, _: String)

Source from the content-addressed store, hash-verified

517
518 #[tracing::instrument(level = "debug", skip(self))]
519 async fn signout(&self, _: String) -> Result<()> {
520 *self.tokens.lock().await = None;
521 *self.api_client.write().await = None;
522 *self.verifier.lock().await = None;
523
524 let preferences: State<PreferenceConfig> = self.app.state();
525 preferences.set_secure("MoosyncSpotifyRefreshToken".into(), None::<String>)?;
526
527 let _ = self
528 .status_tx
529 .lock()
530 .await
531 .send(self.get_provider_status(None).await)
532 .await;
533 Ok(())
534 }
535
536 #[tracing::instrument(level = "debug", skip(self, code))]
537 async fn authorize(&self, code: String) -> Result<()> {

Callers

nothing calls this directly

Calls 4

writeMethod · 0.80
sendMethod · 0.80
set_secureMethod · 0.45
get_provider_statusMethod · 0.45

Tested by

no test coverage detected