Create an OAuth2 client-credentials HonuaAuthProvider for Node/server use. Do not use in a browser — the client secret would be exposed.
import { clientCredentials } from "@honua/sdk-js/auth";const auth = clientCredentials({ tokenEndpoint: "https://idp.example/token", clientId: process.env.CLIENT_ID!, clientSecret: process.env.CLIENT_SECRET!, scopes: ["honua.read"],}); Copy
import { clientCredentials } from "@honua/sdk-js/auth";const auth = clientCredentials({ tokenEndpoint: "https://idp.example/token", clientId: process.env.CLIENT_ID!, clientSecret: process.env.CLIENT_SECRET!, scopes: ["honua.read"],});
Create an OAuth2 client-credentials HonuaAuthProvider for Node/server use. Do not use in a browser — the client secret would be exposed.