diff --git a/src/Web/Features/Users/Handlers/LoginWithGoogle.cs b/src/Web/Features/Users/Handlers/LoginWithGoogle.cs index 6743685..29c2ded 100644 --- a/src/Web/Features/Users/Handlers/LoginWithGoogle.cs +++ b/src/Web/Features/Users/Handlers/LoginWithGoogle.cs @@ -1,6 +1,5 @@ using System.Text.Json; using System.Text.Json.Serialization; -using Hutopy.Web.Common; using Hutopy.Web.Common.Security; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Options; @@ -32,6 +31,7 @@ public class GoogleUserInfo public record LoginWithGoogleRequest( string Token); +[PublicAPI] public record LoginWithGoogleResponse( string AccessToken, string RefreshToken); @@ -59,7 +59,7 @@ public class LoginWithGoogleHandler( // Verify the token with Google using var httpClient = httpClientFactory.CreateClient(); - var response = await httpClient.GetAsync( + using var response = await httpClient.GetAsync( $"https://www.googleapis.com/oauth2/v1/userinfo?access_token={googleToken.AccessToken}", ct); if (!response.IsSuccessStatusCode)