-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1e0bc1
commit a73d9ec
Showing
6 changed files
with
24 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,44 @@ | ||
import { defineConfig } from '../../src/define_config.js' | ||
import { defineConfig, services } from '../../index.js' | ||
|
||
const allyConfig = defineConfig({ | ||
discord: { | ||
driver: 'discord', | ||
discord: services.discord({ | ||
clientId: process.env.DISCORD_CLIENT_ID!, | ||
clientSecret: process.env.DISCORD_CLIENT_SECRET!, | ||
callbackUrl: `http://localhost:${process.env.PORT}/discord/callback`, | ||
}, | ||
google: { | ||
driver: 'google', | ||
}), | ||
google: services.google({ | ||
clientId: process.env.GOOGLE_CLIENT_ID!, | ||
clientSecret: process.env.GOOGLE_CLIENT_SECRET!, | ||
callbackUrl: `http://localhost:${process.env.PORT}/google/callback`, | ||
}, | ||
github: { | ||
driver: 'github', | ||
}), | ||
github: services.github({ | ||
clientId: process.env.GITHUB_CLIENT_ID!, | ||
clientSecret: process.env.GITHUB_CLIENT_SECRET!, | ||
callbackUrl: `http://localhost:${process.env.PORT}/github/callback`, | ||
}, | ||
linkedin: { | ||
driver: 'linkedin', | ||
}), | ||
linkedin: services.linkedin({ | ||
clientId: process.env.LINKEDIN_CLIENT_ID!, | ||
clientSecret: process.env.LINKEDIN_CLIENT_SECRET!, | ||
callbackUrl: `http://localhost:${process.env.PORT}/linkedin/callback`, | ||
}, | ||
twitter: { | ||
driver: 'twitter', | ||
}), | ||
twitter: services.twitter({ | ||
clientId: process.env.TWITTER_API_KEY!, | ||
clientSecret: process.env.TWITTER_APP_SECRET!, | ||
callbackUrl: `http://localhost:${process.env.PORT}/twitter/callback`, | ||
}, | ||
facebook: { | ||
driver: 'facebook', | ||
}), | ||
facebook: services.facebook({ | ||
clientId: process.env.FACEBOOK_CLIENT_ID!, | ||
clientSecret: process.env.FACEBOOK_CLIENT_SECRET!, | ||
callbackUrl: `http://localhost:${process.env.PORT}/facebook/callback`, | ||
}, | ||
spotify: { | ||
driver: 'spotify', | ||
}), | ||
spotify: services.spotify({ | ||
clientId: process.env.SPOTIFY_CLIENT_ID!, | ||
clientSecret: process.env.SPOTIFY_CLIENT_SECRET!, | ||
callbackUrl: `http://localhost:${process.env.PORT}/spotify/callback`, | ||
}, | ||
}), | ||
}) | ||
|
||
declare module '@adonisjs/ally/types' { | ||
interface SocialProviders extends InferSocialProviders<typeof allyConfig> {} | ||
} | ||
|
||
export default allyConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
"rootDir": "./", | ||
"outDir": "./build" | ||
} | ||
} | ||
} |