adonis-ally-vk
Version:
A driver of AdonisJS Ally for vk.com
61 lines (47 loc) • 999 B
Markdown
A driver of AdonisJS Ally for vk.com (vkontakte)
Make sure to install it using `npm` or `yarn`.
```bash
npm i adonis-ally-vk
node ace configure adonis-ally-vk
yarn add adonis-ally-vk
node ace configure adonis-ally-vk
```
Open a `instructions.md` file after configure
Make sure to register the provider inside `.adonisrc.json` file.
```json
{
"providers": [
"...other packages",
"adonis-ally-vk"
]
}
```
For TypeScript projects add to `tsconfig.json` file:
```json
{
"compilerOptions": {
"types": [
"...other packages",
"adonis-ally-vk"
]
}
}
```
More about [AdonisJS Ally](https://docs.adonisjs.com/guides/auth/social) and as usage this driver
```ts
const allyConfig: AllyConfig = {
// ... other drivers
vk: {
// ... config
display: 'page',
scopes: ['email', '...other'],
fields: ['screen_name', 'bdate', '...other']
},
}
```