Mercurial > minori
diff include/core/config.h @ 317:b1f4d1867ab1
services: VERY initial Kitsu support
it only supports user authentication for now, but it's definitely
a start.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 12 Jun 2024 04:07:10 -0400 |
parents | 657fda1b9cac |
children | 3b355fa948c7 |
line wrap: on
line diff
--- a/include/core/config.h Tue Jun 11 15:11:09 2024 -0400 +++ b/include/core/config.h Wed Jun 12 04:07:10 2024 -0400 @@ -2,6 +2,7 @@ #define MINORI_CORE_CONFIG_H_ #include "core/anime.h" +#include "core/time.h" #include "gui/locale.h" #include "gui/theme.h" @@ -40,6 +41,12 @@ std::string auth_token; int user_id; } anilist; + struct { + std::string access_token; + Time::Timestamp access_token_expiration; /* Unix time */ + std::string refresh_token; + std::string user_id; + } kitsu; } auth; struct {