🎨 format oauth provider list
fixing the list format on oauth login.
This commit is contained in:
@ -1,9 +0,0 @@
|
||||
"use server";
|
||||
import { api } from "@/shared/api/connector";
|
||||
|
||||
const getGoogleAuthUrl = async () => {
|
||||
const res = await api.get(`debug`);
|
||||
return res.json();
|
||||
};
|
||||
|
||||
export default getGoogleAuthUrl;
|
||||
9
features/auth/lib/getOauthProviderList.ts
Normal file
9
features/auth/lib/getOauthProviderList.ts
Normal file
@ -0,0 +1,9 @@
|
||||
"use server";
|
||||
import { api } from "@/shared/api/connector";
|
||||
|
||||
const getOauthProviderList = async () => {
|
||||
const res = await api.get(`auth/providers`);
|
||||
return res.json();
|
||||
};
|
||||
|
||||
export default getOauthProviderList;
|
||||
Reference in New Issue
Block a user