@ngriffin_uk/auth-provider-battlenet
v4.0.0
Published
battlenet authentication provider for @ngriffin_uk/auth-core
Readme
@ngriffin_uk/auth-provider-battlenet
Battle.net OAuth middleware for auth-core.
pnpm add @ngriffin_uk/auth-core @ngriffin_uk/auth-provider-battlenetimport { createBattleNetAuth } from "@ngriffin_uk/auth-provider-battlenet";
const auth = baseAuth.use(
createBattleNetAuth({ clientId, clientSecret, redirectUri, stateStore, resolveIdentity })
);Provide scopes and map the returned access token in resolveIdentity.
