diff --git a/src/api.ts b/src/api.ts index d8a33ce..5c8f047 100644 --- a/src/api.ts +++ b/src/api.ts @@ -2,7 +2,7 @@ import Cookies from "js-cookie"; type HTTPMethod = "GET" | "POST" | "PUT" | "PATCH"; -class APIError extends Error { +export class APIError extends Error { constructor(message: string, public readonly errors: unknown) { super(message); } @@ -42,8 +42,8 @@ async function request( export class User { email: string | undefined; password: string | undefined; - private username: string | null = null; - private confidantEmail: string | null = null; + username: string | null = null; + confidantEmail: string | null = null; isAuthenticated = false; private token = ""; @@ -67,6 +67,7 @@ export class User { 200, { username: this.username, + confidant_email: this.confidantEmail, }, this.token ); diff --git a/src/components/UserTable.vue b/src/components/UserTable.vue index 696c59a..51e9491 100644 --- a/src/components/UserTable.vue +++ b/src/components/UserTable.vue @@ -24,11 +24,15 @@