X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=README.md;h=985c6b0356de83f02310c9d4b613824d0e62cf7f;hb=cbc34a48ad25784a42673faa7c48067c4bfa10a2;hp=dee619d5bdf2c32e5332f2581e0e5888dd062b47;hpb=e648aedc1c912cd07da0b1dad7be3910248b25c9;p=squeep-indieauth-helper diff --git a/README.md b/README.md index dee619d..985c6b0 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,22 @@ # IndieAuth Helper -Just some abstractions for interacting with IndieAuth sites. +Just some abstractions for interacting with IndieAuth sites, basically wrapping axios and mf2 parsing. + +This is currently quite opinionated, and likely is only really useful in the context of Squeep Framework Applications. Notable methods on the Communication class: -- static generatePKCE(length) +- `static async generatePKCE(length)` Create a code and verifier for use in an IndieAuth transaction. -- fetchProfile(urlObject) +- `async fetchProfile(urlObject)` Retrieve profile information from an endpoint. -- fetchClientIdentifier(urlObject) +- `async fetchClientIdentifier(urlObject)` Retrieve client identifier information from an endpoint. -- fetchMicroformat(urlObject) - Retrieve all mf2 information form an endpoint. +- `async fetchMicroformat(urlObject)` + Retrieve all mf2 information from an endpoint. + +- `async fetchJSON(urlObject)` + Retrieve json from an endpoint.