0.1.10 • Published 3 years ago

oauth2-battle.net v0.1.10

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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)