IGoogleTokenValidator.cs 306 B

12345678910111213
  1. namespace Application.Abstractions.Authentication;
  2. public sealed record GoogleUserInfo(
  3. string Sub,
  4. string Email,
  5. string? Name,
  6. string? Picture
  7. );
  8. public interface IGoogleTokenValidator
  9. {
  10. Task<GoogleUserInfo?> ValidateAsync(string credential, string clientId, CancellationToken ct);
  11. }