🚧 (wip) forward callback to backend

This commit is contained in:
2025-08-28 23:26:33 +07:00
parent 73c5bff44c
commit e804f259b7
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,16 @@
"use server";
import { api } from "@/shared/api/connector";
export const SendCallbackToServer = async (data: Record<string, any>) => {
try {
const response = await api.get("auth/google/callback", {
searchParams: { ...data },
});
const result = await response.json();
console.log(result);
} catch (error) {
console.error("Error sending callback to server:", error);
throw error;
}
};