verifizierung
This commit is contained in:
@@ -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`)
|
||||
|
||||
Reference in New Issue
Block a user