🚀 DAY 4 OF LAUNCH WEEK:Introducing Socket Scanning for OpenVSX Extensions.Learn more →
Socket
Book a DemoInstallSign in
Socket

@jackdbd/indieauth

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jackdbd/indieauth

Schemas and functions for implementing [IndieAuth](https://indieauth.spec.indieweb.org/).

npmnpm
Version
0.2.0-canary.13
Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

@jackdbd/indieauth

npm version install size CodeCov badge Socket Badge

Schemas and functions for implementing IndieAuth.

Installation

npm install @jackdbd/indieauth

Access tokens

The access tokens issued by the token endpoint implemented by this plugin are JSON Web Tokens.

Each JWT issued by this token endpoint is signed with RS256 using a random JSON Web Key (JWK) from a given private JWK Set.

Each JWT issued by this token endpoint can be verified by anyone (for example by a revocation endpoint or an introspection endpoint) using the the kid parameter from the matching public JWK Set.

[!WARNING] Since neither OAuth 2.0 nor IndieAuth require an access token to be implemented as a JSON Web Token, I am considering other implementations. Watch the talk Rethinking Authentication to learn more about possible alternative implementations for access tokens.

Refresh tokens

The refresh tokens issued by the token endpoint implemented by this plugin are Nano IDs generated with nanoid.

[!TIP] Read the article Why we chose NanoIDs for PlanetScale’s API for a comparison of Nano ID with UUIDs.

Docs

Docs generated by TypeDoc

Dependencies

PackageVersion
@jackdbd/canonical-url0.2.0-canary.8
@jackdbd/pkce0.2.0-canary.7
@jackdbd/schema-validators0.2.0-canary.11
@sinclair/typebox^0.34.14
ajv^8.17.1
ajv-formats^3.0.1
dayjs^1.11.13
dayjs-plugin-utc^0.1.2
jose^5.9.6
ms3.0.0-canary.1
nanoid^5.0.9
posthtml-parser^0.12.1

References

License

© 2024 - 2025 Giacomo Debidda // MIT License

Keywords

IndieWeb

FAQs

Package last updated on 16 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts