Implement Google authentication (for Web) and user management system
This commit is contained in:
22
Bimix.Application/DTOModels/AuthDto.cs
Normal file
22
Bimix.Application/DTOModels/AuthDto.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user