Get client_id test

FossilOrigin-Name: f0e835af04dda630075d6da18bbd222802c6500fcf34ecdcbb4bf68e6c3a1674
This commit is contained in:
me@ow.nekobit.net 2022-02-15 18:16:35 +00:00
parent 3b2b350f10
commit 26eb79c4e1

View file

@ -27,10 +27,19 @@
void content_login(mastodont_t* api, char** data, size_t data_size)
{
struct mstdnt_storage storage;
struct mstdnt_app app;
struct mstdnt_app_register_args args = {
.client_name = "RatFE",
.redirect_uris = "http://localhost/",
.scopes = "read+write",
.website = NULL
};
mastodont_register_app(api, &args, &storage, &app);
struct base_page b = {
.locale = L10N_EN_US,
.content = data_login_html,
.content = app.client_id,
.sidebar_right = NULL
};