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

Method authorize

src-tauri/src/providers/spotify.rs:537–551  ·  view source on GitHub ↗
(&self, code: String)

Source from the content-addressed store, hash-verified

535
536 #[tracing::instrument(level = "debug", skip(self, code))]
537 async fn authorize(&self, code: String) -> Result<()> {
538 tracing::info!("Authorizing with code {}", code);
539 *self.tokens.lock().await = Some(
540 authorize(
541 "MoosyncSpotifyRefreshToken",
542 code,
543 self.verifier.lock().await.take(),
544 &self.app,
545 )
546 .await?,
547 );
548
549 self.create_api_client().await;
550 Ok(())
551 }
552
553 #[tracing::instrument(level = "debug", skip(self, pagination))]
554 async fn fetch_user_playlists(

Callers

nothing calls this directly

Calls 2

authorizeFunction · 0.85
create_api_clientMethod · 0.45

Tested by

no test coverage detected