Arctic v1

Shikimori

For usage, see OAuth 2.0 provider.

import { Shikimori } from "arctic";

const shikimori = new Shikimori(clientId, clientSecret, redirectURI);
import type { ShikimoriTokens } from "arctic";

const url: URL = await shikimori.createAuthorizationURL(state);
const tokens: ShikimoriTokens = await shikimori.validateAuthorizationCode(code);
const refreshedTokens: ShikimoriTokens = await shikimori.refreshAccessToken(refreshToken);