-
Hi, First of all, thank you for the masto.js, it's such a great library to work with. It's so elegantly built, I really appreciate the effort. I wanted to understand if we're missing something, but we couldn't find a way to request an More specifically, request
Right now we're doing this flow using Axios and then, once we have the Are we correct to assume that masto.js doesn't support this initial flow? I found out on a comment here that OAuth support is pretty new to masto.js, so maybe we're just missing implementing those calls? I'd be happy to contribute with a PR. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@dccarmo Hi, thank you for posting a question. Although It's not well documented at this time, you can find a working code at tests directory: masto.js/tests/oauth/token.spec.ts Lines 5 to 16 in fce7a60 Basically, you need to initialise OAuth API dedicated client via We have room for documentation so I'm planning to improve it in the future 🙏 |
Beta Was this translation helpful? Give feedback.
-
@neet thank you for your response! Does |
Beta Was this translation helpful? Give feedback.
I shipped
grant_type: authorization_code
andclient_credentials
in v6.7.0.https://github.com/neet/masto.js/releases/tag/v6.7.0
Try updating masto.js to the latest version and verify it works. Let me know if you still have a trouble!