✨ add new oauth provider
add google idconnect as new auth provider
This commit is contained in:
10
src/modules/auth/providers/google.provider.ts
Normal file
10
src/modules/auth/providers/google.provider.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { Google } from "arctic";
|
||||
|
||||
export const googleProvider = () => {
|
||||
const redirectURI = `${process.env.APP_PROTOCOL}://${process.env.APP_DOMAIN}${process.env.GOOGLE_CLIENT_CALLBACK}`;
|
||||
return new Google(
|
||||
process.env.GOOGLE_CLIENT_ID!,
|
||||
process.env.GOOGLE_CLIENT_SECRET!,
|
||||
redirectURI
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user