feat: implement authentication with JWT and user management

This commit is contained in:
Constantin Simonis 2025-05-07 13:42:04 +02:00
commit 35d8fbaea0
No known key found for this signature in database
GPG key ID: 3878FF77C24AF4D2
42 changed files with 989 additions and 397 deletions

View file

@ -1,5 +1,6 @@
export interface User {
authentikId: string;
id: number;
email: string;
username: string;
balance: number;
}

View file

@ -0,0 +1,4 @@
export interface AuthResponse {
token: string;
tokenType: string;
}

View file

@ -0,0 +1,4 @@
export interface LoginRequest {
usernameOrEmail: string;
password: string;
}

View file

@ -0,0 +1,5 @@
export interface RegisterRequest {
email: string;
username: string;
password: string;
}