Use config providers
Pre-release
Pre-release
The config must be defined using the services
object as string based drivers are not supported anymore
import {
defineConfig,
+ services
} from '@adonisjs/ally'
const allyConfig = defineConfig({
- github: {
- driver: 'github',
- clientId: env.get('GITHUB_CLIENT_ID'),
- clientSecret: env.get('GITHUB_CLIENT_SECRET'),
- callbackUrl: '',
- },
+ github: services.github({
+ clientId: env.get('GITHUB_CLIENT_ID'),
+ clientSecret: env.get('GITHUB_CLIENT_SECRET'),
+ callbackUrl: '',
+ }),
})
Commits
- refactor: fix typing issues a73d9ec
- refactor: move to config providers and remove drivers collection c1e0bc1
- chore: update dependencies c9b5a5c
Full Changelog: v5.0.0-5...v5.0.0-6