@sjallabong/auth
v1.0.0
Published
OAuth2 BFF library for sjallabong auth
Downloads
9
Readme
authabongw
OAuth2 BFF PKCE library for Sjallabong Auth. Here it is as npm package.
Installation
npm install authabongSetup
Server (BFF)
import OAuth2Server from "authabong";
const oauth = new OAuth2Server({
clientId: "some-client-id",
discoveryUrl: "http://localhost:5173/.well-known/openid-configuration",
redirectUrl: "http://localhost:8080/auth/callback",
services: {
"/resources": "https://example.com"
}
}).init();Frontend
import OAuth2Client from "authabong/client";
const auth = new OAuth2Client({});
await auth.login() // something like thisConsiderations
- There"s no reauthentication flag for "sensitive operations"
- 32 byte random for now
