mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-28 10:30:28 +01:00
Working on v3
This commit is contained in:
56
config/ally.ts
Normal file
56
config/ally.ts
Normal file
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* 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 = {
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Github driver
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
github: {
|
||||
driver: 'github',
|
||||
clientId: Env.get('GITHUB_CLIENT_ID'),
|
||||
clientSecret: Env.get('GITHUB_CLIENT_SECRET'),
|
||||
callbackUrl: 'http://localhost:3333/github',
|
||||
},
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Twitter driver
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
twitter: {
|
||||
driver: 'twitter',
|
||||
clientId: Env.get('TWITTER_CLIENT_ID'),
|
||||
clientSecret: Env.get('TWITTER_CLIENT_SECRET'),
|
||||
callbackUrl: 'http://localhost:3333/twitter',
|
||||
},
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Google driver
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
google: {
|
||||
driver: 'google',
|
||||
clientId: Env.get('GOOGLE_CLIENT_ID'),
|
||||
clientSecret: Env.get('GOOGLE_CLIENT_SECRET'),
|
||||
callbackUrl: 'http://localhost:3333/google',
|
||||
},
|
||||
}
|
||||
|
||||
export default allyConfig
|
||||
Reference in New Issue
Block a user