A driver of AdonisJS Ally for Yandex
Make sure to install it using npm
or yarn
.
# npm
npm i adonis-ally-yandex
node ace configure adonis-ally-yandex
# yarn
yarn add adonis-ally-yandex
node ace configure adonis-ally-yandex
Open a instructions.md
file after configure
Make sure to register the provider inside .adonisrc.json
file.
{
"providers": [
"...other packages",
"adonis-ally-yandex"
]
}
For TypeScript projects add to tsconfig.json
file:
{
"compilerOptions": {
"types": [
"...other packages",
"adonis-ally-yandex"
]
}
}
More about AdonisJS Ally and as usage this driver
const allyConfig: AllyConfig = {
// ... other drivers
yandex: {
// ... config
display: 'popup',
optionalScopes: ['login:birthday', '...other'],
forceConfirm: true
},
}