commit ca24e28
Merge pull request 'Send a scope with access token' (#605) from trondd555/snac2:token_scope into master Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/605
1 files changed,
+2,
-0
+2,
-0
1@@ -412,6 +412,8 @@ int oauth_post_handler(const xs_dict *req, const char *q_path,
2
3 if (!xs_is_null(scope))
4 rsp = xs_dict_append(rsp, "scope", scope);
5+ else
6+ rsp = xs_dict_append(rsp, "scope", "");
7
8 *body = xs_json_dumps(rsp, 4);
9 *ctype = "application/json";