👔 create list for oauth providers
create list and endpoint to see avaiable oauth providers.
This commit is contained in:
20
src/config/oauthProvider.ts
Normal file
20
src/config/oauthProvider.ts
Normal file
@ -0,0 +1,20 @@
|
||||
export const getOauthProviders = () => {
|
||||
return [
|
||||
{
|
||||
name: "google",
|
||||
icon: "logos:google-icon",
|
||||
req_endpoint: "auth/github",
|
||||
client_id: process.env.GOOGLE_CLIENT_ID,
|
||||
client_secret: process.env.GOOGLE_CLIENT_SECRET,
|
||||
client_callback: "auth/google/callback",
|
||||
},
|
||||
{
|
||||
name: "github",
|
||||
icon: "logos:github-icon",
|
||||
req_endpoint: "auth/github",
|
||||
client_id: process.env.GITHUB_CLIENT_ID,
|
||||
client_secret: process.env.GITHUB_CLIENT_SECRET,
|
||||
client_callback: "auth/github/callback",
|
||||
},
|
||||
];
|
||||
};
|
||||
Reference in New Issue
Block a user