verifizierung

This commit is contained in:
Bastian Wagner
2026-06-09 14:01:38 +02:00
parent 8f3806d398
commit 4c9ecb0b6b
33 changed files with 3993 additions and 132 deletions

View File

@@ -7,6 +7,7 @@ import {
PublicUser,
RegisterRequest,
RegisterResponse,
ResendVerificationResponse,
VerifyEmailResponse,
} from './auth.models';
@@ -39,6 +40,13 @@ export class AuthService {
return this.http.get<VerifyEmailResponse>(`${this.apiUrl}/verify-email`, { params });
}
resendVerificationEmail(email: string): Observable<ResendVerificationResponse> {
return this.http.post<ResendVerificationResponse>(
`${this.apiUrl}/resend-verification`,
{ email },
);
}
loadCurrentUser(): Observable<PublicUser> {
return this.http
.get<PublicUser>(`${this.apiUrl}/me`)