Implement invite redemption page #54

Merged
sauceyred merged 3 commits from invite-page into main 2025-07-20 09:15:52 +00:00
Showing only changes of commit c87fffe6c9 - Show all commits

View file

@ -94,6 +94,10 @@ export const useApi = () => {
await fetchWithApi("/auth/reset-password", { method: "POST", body: { password, token } });
}
async function fetchInvite(id: string): Promise<GuildResponse | undefined> {
return await fetchWithApi(`/invites/${id}`);
}
return {
fetchGuilds,
fetchGuild,
@ -115,6 +119,7 @@ export const useApi = () => {
fetchInstanceStats,
sendVerificationEmail,
sendPasswordResetEmail,
resetPassword
resetPassword,
fetchInvite
}
}