Skip to content

Commit

Permalink
fix: When the token has expired, pending requests continue to renew t…
Browse files Browse the repository at this point in the history
…he token
  • Loading branch information
sirambd committed May 30, 2024
1 parent 0a9679a commit 7c244e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/src/main/java/com/infomaniak/drive/MainApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,7 @@ class MainApplication : Application(), ImageLoaderFactory, DefaultLifecycleObser
}

override suspend fun getApiToken(): ApiToken? = AccountUtils.currentUser?.apiToken

override fun getCurrentUserId(): Int = AccountUtils.currentUserId
}
}

0 comments on commit 7c244e7

Please sign in to comment.