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

Method refresh_login

src-tauri/src/providers/spotify.rs:220–233  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

218
219 #[tracing::instrument(level = "debug", skip(self))]
220 async fn refresh_login(&self) -> Result<()> {
221 tracing::debug!("Refreshing spotify login");
222 *self.tokens.lock().await = Some(
223 refresh_login(
224 "MoosyncSpotifyRefreshToken",
225 self.get_oauth_client().await,
226 &self.app,
227 )
228 .await?,
229 );
230 self.create_api_client().await;
231
232 Ok(())
233 }
234
235 #[tracing::instrument(level = "debug", skip(self, playlist))]
236 fn parse_playlist(&self, playlist: SimplifiedPlaylist) -> QueryablePlaylist {

Callers 2

get_api_clientMethod · 0.45
initializeMethod · 0.45

Calls 3

refresh_loginFunction · 0.85
get_oauth_clientMethod · 0.45
create_api_clientMethod · 0.45

Tested by

no test coverage detected