| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- /**
- * Config source: https://git.io/JOdi5
- *
- * Feel free to let us know via PR, if you find something broken in this config
- * file.
- */
- import Env from '@ioc:Adonis/Core/Env'
- import { AllyConfig } from '@ioc:Adonis/Addons/Ally'
- /*
- |--------------------------------------------------------------------------
- | Ally Config
- |--------------------------------------------------------------------------
- |
- | The `AllyConfig` relies on the `SocialProviders` interface which is
- | defined inside `contracts/ally.ts` file.
- |
- */
- const allyConfig: AllyConfig = {
- /*
- |--------------------------------------------------------------------------
- | Google driver
- |--------------------------------------------------------------------------
- */
- google: {
- driver: 'google',
- clientId: Env.get('GOOGLE_CLIENT_ID'),
- clientSecret: Env.get('GOOGLE_CLIENT_SECRET'),
- callbackUrl: 'http://localhost:3333/api/auth/google/callback'
- },
- /*
- |--------------------------------------------------------------------------
- | Facebook driver
- |--------------------------------------------------------------------------
- */
- facebook: {
- driver: 'facebook',
- clientId: Env.get('FACEBOOK_CLIENT_ID'),
- clientSecret: Env.get('FACEBOOK_CLIENT_SECRET'),
- callbackUrl: 'http://localhost:3333/api/auth/facebook/callback'
- }
- }
- export default allyConfig
|