refactor(all): prefer token-based authentication
This commit is contained in:
parent
9e17440abc
commit
f69b52261a
24 changed files with 166 additions and 117 deletions
|
@ -4,7 +4,7 @@ exports.runQuery = function (matrixClient, room, registrar) {
|
|||
axios({
|
||||
method: 'POST',
|
||||
url: `${registrar.config.fediverse.domain}/api/v1/statuses`,
|
||||
headers: { Authorization: `Bearer ${registrar.config.fediverse.token}` },
|
||||
headers: { Authorization: `Bearer ${registrar.fediverse_auth.access_token}` },
|
||||
data: { status: `@10grans@fedi.cc beg` },
|
||||
}).then((response) => {
|
||||
matrixClient.sendHtmlNotice(room.roomId,
|
||||
|
@ -18,4 +18,4 @@ exports.runQuery = function (matrixClient, room, registrar) {
|
|||
matrixClient.sendHtmlNotice(room.roomId,
|
||||
'', `${e}`);
|
||||
});
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue