Implemented actual authentication guards, began implementing main login user flows
This commit is contained in:
@@ -12,7 +12,9 @@ export type Member = {
|
||||
const addr = import.meta.env.VITE_APIHOST;
|
||||
|
||||
export async function getMembers(): Promise<Member[]> {
|
||||
const response = await fetch(`${addr}/members`);
|
||||
const response = await fetch(`${addr}/members`, {
|
||||
credentials: 'include'
|
||||
});
|
||||
if (!response.ok) {
|
||||
throw new Error("Failed to fetch members");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user