0.1.5 • Published 1 year ago

ally-blizzard v0.1.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

ally-blizzard is a Blizzard/Battle.net driver for AdonisJS Ally.

Getting Started

This package is available in the npm registry.

npm install --save ally-blizzard

Next, configure the package by running the following command.

node ace configure ally-blizzard

Then register the service inside the configuration file config/ally.ts.

// config/ally.ts
import { defineConfig } from '@adonisjs/ally'
import { blizzard } from 'ally-blizzard'
import env from '#start/env'

const allyConfig = defineConfig({
  blizzard: blizzard({
    clientId: env.get('BLIZZARD_CLIENT_ID'),
    clientSecret: env.get('BLIZZARD_CLIENT_SECRET'),
    callbackUrl: env.get('BLIZZARD_CALLBACK_URL'),
  }),
})

Scopes

The Blizzard driver exposes the following scopes :

  • wow.profile
  • sc2.profile
  • d3.profile
  • openid

You can configure the scopes by setting the scopes property inside the configuration file config/ally.ts. The default scope is openid. More infos can be found in the official documentation.

0.1.5

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago