@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
21 lines (17 loc) • 521 B
text/typescript
import Google from 'next-auth/providers/google';
import { CommonProviderConfig } from './sso.config';
const provider = {
id: 'google',
provider: Google({
...CommonProviderConfig,
authorization: {
params: {
scope:
'openid https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email openid',
},
},
clientId: process.env.AUTH_GOOGLE_CLIENT_ID,
clientSecret: process.env.AUTH_GOOGLE_CLIENT_SECRET,
}),
};
export default provider;