@ngriffin_uk/auth-provider-mastodon
v4.0.0
Published
mastodon authentication provider for @ngriffin_uk/auth-core
Readme
@ngriffin_uk/auth-provider-mastodon
Mastodon OAuth middleware for a selected server.
pnpm add @ngriffin_uk/auth-core @ngriffin_uk/auth-provider-mastodonimport { createMastodonAuth } from "@ngriffin_uk/auth-provider-mastodon";
const auth = baseAuth.use(
createMastodonAuth("https://mastodon.social", {
clientId,
clientSecret,
redirectUri,
stateStore,
resolveIdentity,
})
);Validate or allowlist server URLs before passing user-selected instances.
