refactor: remove unused user verification function and clean up user type definitions 🔨

This commit is contained in:
2025-07-11 14:41:30 +05:00
parent a20c939c91
commit 78673e050c
3 changed files with 17 additions and 39 deletions

View File

@ -363,18 +363,4 @@ export async function verifyTopupPayment(
}
}
export async function getProfile() {
const session = await getServerSession(authOptions);
const response = await fetch(
`${process.env.SARLINK_API_BASE_URL}/api/auth/profile/`,
{
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Token ${session?.apiToken}`,
},
},
);
return handleApiResponse<User>(response, "getProfile");
}