Feature chore bug 005 #19
@@ -1771,7 +1771,10 @@ fn now_unix() -> i64 {
|
|||||||
/// `pub(crate)` so `calendar::GraphSource` (M4.4) can reuse it too — same
|
/// `pub(crate)` so `calendar::GraphSource` (M4.4) can reuse it too — same
|
||||||
/// Microsoft identity platform + token-set shape as `OneDriveTarget`.
|
/// Microsoft identity platform + token-set shape as `OneDriveTarget`.
|
||||||
#[cfg(feature = "sync")]
|
#[cfg(feature = "sync")]
|
||||||
pub(crate) async fn resolve_access_token(kind: &str, credential_ref: &str) -> Result<String, SyncError> {
|
pub(crate) async fn resolve_access_token(
|
||||||
|
kind: &str,
|
||||||
|
credential_ref: &str,
|
||||||
|
) -> Result<String, SyncError> {
|
||||||
let provider = oauth::provider_for(kind)
|
let provider = oauth::provider_for(kind)
|
||||||
.ok_or_else(|| SyncError::Upload(format!("unknown oauth provider {kind}")))?;
|
.ok_or_else(|| SyncError::Upload(format!("unknown oauth provider {kind}")))?;
|
||||||
let client_id = provider.client_id()?;
|
let client_id = provider.client_id()?;
|
||||||
|
|||||||
Reference in new issue
Block a user