feat: add oauth button

This commit is contained in:
2026-01-07 17:21:14 +07:00
parent 21a099b77f
commit 28cd3178b9
7 changed files with 70 additions and 3 deletions

View File

@ -0,0 +1,14 @@
"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;
};