indieauth-helper
v2.0.0
Published
A simple helper class for creating IndieAuth clients
Maintainers
Readme
IndieAuth Helper
A IndieAuth helper library for JavaScript and TypeScript, implementing the IndieAuth Living Standard (11 July 2024).
npm install indieauth-helperimport IndieAuth from "indieauth-helper";
const auth = new IndieAuth({
me: "https://user.example/",
clientId: "https://app.example/",
redirectUri: "https://app.example/callback",
secret: "a long random string",
});
await auth.discover();
const authUrl = await auth.getAuthUrl({ scopes: ["profile", "create"] });Full documentation: https://grantcodes.github.io/indieauth-helper/
Thanks
- martymcguire - For the idea and building a lot of the functionality
- sknebel - For helping with the rel scraping function
- Zegnat - For helping with the rel scraping function
- myfreeweb - For fixing Link header handling and help with Accept headers
- 00dani - For fixing base tag support in the rel scraper
- cweiske - For fixing the 'me' domain check
