MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / get_oauth_token

Method get_oauth_token

crates/opencode-provider/src/auth.rs:127–133  ·  view source on GitHub ↗
(&self, provider_id: &str)

Source from the content-addressed store, hash-verified

125 }
126
127 pub async fn get_oauth_token(&self, provider_id: &str) -> Option<String> {
128 let creds = self.credentials.read().await;
129 match creds.get(provider_id) {
130 Some(AuthInfo::OAuth { access, .. }) => Some(access.clone()),
131 _ => None,
132 }
133 }
134
135 pub async fn list(&self) -> HashMap<String, AuthInfo> {
136 let creds = self.credentials.read().await;

Callers

nothing calls this directly

Calls 3

readMethod · 0.80
getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected