Implement Google authentication (for Web) and user management system

This commit is contained in:
Michał Zieliński
2025-07-19 22:50:38 +02:00
parent b673fd2da3
commit 14c61ca1ee
25 changed files with 1072 additions and 41 deletions

View File

@@ -0,0 +1,22 @@
namespace Bimix.Application.DTOModels;
public class GoogleAuthRequest
{
public string? IdToken { get; set; }
}
public class GoogleAuthResponse
{
public bool Success { get; set; }
public string? Token { get; set; }
public UserDto? User { get; set; }
public string? Error { get; set; }
}
public class UserDto {
public Guid Id { get; set; }
public string Email { get; set; } = default!;
public string FullName { get; set; } = default!;
public bool IsActive { get; set; }
public DateTime? LastLoginAt { get; set; }
}