mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 22:53:25 +00:00
20 lines
548 B
TypeScript
20 lines
548 B
TypeScript
import env from '#start/env';
|
|
import { defineConfig, services } from '@adonisjs/ally';
|
|
|
|
const allyConfig = defineConfig({
|
|
google: services.google({
|
|
clientId: env.get('GOOGLE_CLIENT_ID'),
|
|
clientSecret: env.get('GOOGLE_CLIENT_SECRET'),
|
|
callbackUrl: env.get('APP_URL') + '/auth/callback',
|
|
prompt: 'select_account',
|
|
display: 'page',
|
|
scopes: ['userinfo.email', 'userinfo.profile'],
|
|
}),
|
|
});
|
|
|
|
export default allyConfig;
|
|
|
|
declare module '@adonisjs/ally/types' {
|
|
interface SocialProviders extends InferSocialProviders<typeof allyConfig> {}
|
|
}
|