👔 create list for oauth providers

create list and endpoint to see avaiable oauth providers.
This commit is contained in:
Rafi Arrafif
2025-08-24 10:42:36 +07:00
parent 5cce8eea9f
commit 7e8b5be6cd
4 changed files with 49 additions and 0 deletions

View 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",
},
];
};