feat: token lifetime stored

This commit is contained in:
rebelonion 2024-02-25 18:35:45 -06:00
parent d5c87c46aa
commit 8a922bd083
4 changed files with 69 additions and 22 deletions

View file

@ -111,6 +111,10 @@ class App : MultiDexApplication() {
logger("Novel Extensions: ${novelExtensionManager.installedExtensionsFlow.first()}")
NovelSources.init(novelExtensionManager.installedExtensionsFlow)
}
val commentsScope = CoroutineScope(Dispatchers.Default)
commentsScope.launch {
CommentsAPI.fetchAuthToken()
}
}