We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Credentials
1 parent d2c6a91 commit 143a60fCopy full SHA for 143a60f
packages/app-lib/src/state/minecraft_auth.rs
@@ -411,6 +411,8 @@ impl Credentials {
411
)
412
}
413
414
+ /// Like [`get_active`](Self::get_active), but enforces credentials to be
415
+ /// successfully refreshed unless the network is unreachable or times out.
416
#[tracing::instrument]
417
pub async fn get_default_credential(
418
exec: impl sqlx::Executor<'_, Database = sqlx::Sqlite> + Copy,
@@ -443,6 +445,8 @@ impl Credentials {
443
445
444
446
447
448
+ /// Fetches the currently selected credentials from the database, attempting
449
+ /// to refresh them if they are expired.
450
pub async fn get_active(
451
452
) -> crate::Result<Option<Self>> {
0 commit comments