Cookie creation and error handling
This commit is contained in:
parent
985b94b109
commit
16af21123b
7 changed files with 149 additions and 25 deletions
22
frontend/svelte/src/models/user.ts
Normal file
22
frontend/svelte/src/models/user.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
export class User {
|
||||
id: number;
|
||||
email: string;
|
||||
username: string;
|
||||
|
||||
// Can be extended by these
|
||||
// blocked: boolean;
|
||||
// provider: string;
|
||||
// confirmed: boolean;
|
||||
// createdAt: Date;
|
||||
// updatedAt: Date;
|
||||
|
||||
/**
|
||||
* Creates the user.
|
||||
* @param params Fetch data.
|
||||
*/
|
||||
constructor(params: any) {
|
||||
this.id = params?.id;
|
||||
this.email = params?.email;
|
||||
this.username = params?.username;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue