15 lines
363 B
TypeScript
15 lines
363 B
TypeScript
"use server";
|
|
import { backendFetch, BackendResponse } from "@/shared/helper/backendFetch";
|
|
|
|
export type GetALlThirdPartyAuthCallback = BackendResponse<
|
|
{
|
|
name: string;
|
|
icon: string;
|
|
req_endpoint: string;
|
|
}[]
|
|
>;
|
|
|
|
export const getAllThirdPartyAuth = async () => {
|
|
return (await backendFetch("auth/providers")) as GetALlThirdPartyAuthCallback;
|
|
};
|