File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/app-lib/src/state Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -411,6 +411,8 @@ impl Credentials {
411
411
)
412
412
}
413
413
414
+ /// Like [`get_active`](Self::get_active), but enforces credentials to be
415
+ /// successfully refreshed unless the network is unreachable or times out.
414
416
#[ tracing:: instrument]
415
417
pub async fn get_default_credential (
416
418
exec : impl sqlx:: Executor < ' _ , Database = sqlx:: Sqlite > + Copy ,
@@ -443,6 +445,8 @@ impl Credentials {
443
445
}
444
446
}
445
447
448
+ /// Fetches the currently selected credentials from the database, attempting
449
+ /// to refresh them if they are expired.
446
450
pub async fn get_active (
447
451
exec : impl sqlx:: Executor < ' _ , Database = sqlx:: Sqlite > + Copy ,
448
452
) -> crate :: Result < Option < Self > > {
You can’t perform that action at this time.
0 commit comments