✨ feat: add oauth button
This commit is contained in:
14
shared/widgets/signin/actions/getAllThirdPartyAuth.ts
Normal file
14
shared/widgets/signin/actions/getAllThirdPartyAuth.ts
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user