oauth2-battle.net

0.1.10 • Public • Published

Battle.net OAuth2 client

Documentation

Backend is not required

First create your account / application and get your API credentials and configure your redirect uri : https://develop.battle.net/

Integration example ( Get access token and how to call Blizzard API )

import OAuth2BnetComponent from "oauth2-battle.net/dist/battle.net/OAuth2Bnet.component.js";
import {OAuth2CodeFlowConfiguration} from "oauth2-battle.net/dist/default/blizzardApi.js";

// ...

// Integration example : https://github.com/sylvainSUPINTERNET/oauth2-battle.net/blob/master/src/App.tsx (get access token + request Blizzard API to get item detail)

Install

npm i oauth2-battle.net

DownloadsWeekly Downloads

6

Version

0.1.10

License

MIT

Unpacked Size

79 kB

Total Files

41

Last publish

Collaborators

  • sylvaindev