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

Method get_oauth_client

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

Source from the content-addressed store, hash-verified

134
135 #[tracing::instrument(level = "debug", skip(self))]
136 async fn get_oauth_client(&self) -> OAuth2Client {
137 let config = self.config.lock().await;
138 get_oauth_client(OAuthClientArgs {
139 auth_url: "https://accounts.spotify.com/authorize".to_string(),
140 token_url: "https://accounts.spotify.com/api/token".to_string(),
141 redirect_url: config.redirect_uri.to_string(),
142 client_id: config.client_id.clone().unwrap(),
143 client_secret: config.client_secret.clone().unwrap_or_default(),
144 })
145 }
146
147 #[tracing::instrument(level = "debug", skip(self))]
148 async fn create_api_client(&self) {

Callers 2

refresh_loginMethod · 0.45
loginMethod · 0.45

Calls 2

get_oauth_clientFunction · 0.85
cloneMethod · 0.80

Tested by

no test coverage detected