Client definitions for the authentication service.
⚠️ Warning: Even though the package is public, GitHub registry requires you to have a Personal Access Token withrepo
andread:packages
scopes to pull it in your project. See this issue for more information.
Create a .npmrc
file in the root of your project if it doesn't exist, and make sure it contains the following:
@a-novel:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${YOUR_PERSONAL_ACCESS_TOKEN}
Then, install the package using pnpm:
# pnpm config set auto-install-peers true
# Or
# pnpm config set auto-install-peers true --location project
pnpm add @a-novel/connector-authentication
You need to call the init function once for the package to be ready for use:
import { init } from "@a-novel/connector-authentication";
init({
baseURL: "https://auth.example.com",
});