Skip to content

Use config providers

Pre-release
Pre-release
Compare
Choose a tag to compare
@thetutlage thetutlage released this 19 Oct 15:07
· 24 commits to develop since this 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