mammut
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

mammut

npm install
npm start
import mammut from "mammut";
 
const instance = new mammut.Instance("mstdn.jp");
 
instance
    .client({
        name: "Test",
        scopes: ["read", "write"],
        redirect: "http://localhost:8080",
    })
    .then(client => {
        const authenticationURL = client.authURL();
        window.open(authenticationURL);
        // Let the user authenticate your app in the instance's web page.
        // Then you can get callback access to that "redirect" url,
        // with authentication code as `?code=xxxxxxx`
    });

Dependencies (1)

Dev Dependencies (6)

Package Sidebar

Install

npm i mammut

Weekly Downloads

4

Version

0.0.1

License

MIT

Unpacked Size

26.6 kB

Total Files

23

Last publish

Collaborators

  • otiai10