mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-18 04:25:51 +00:00
refactor: remove unused user verification function and clean up user type definitions 🔨
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user