namespace Application.Abstractions.YouTube;

/// <summary>
/// Google OAuth 2.0 Authorization Code Flow
/// ID Token 검증(기존) 외에 Access Token 획득/갱신을 위한 서비스
/// </summary>
public interface IGoogleOAuthService
{
    /// <summary>Authorization URL 생성 (프론트엔드 리다이렉트용)</summary>
    string GetAuthorizationUrl(string state, string redirectUri, string[] scopes);

    /// <summary>Authorization Code → Access Token + Refresh Token 교환</summary>
    Task<GoogleOAuthTokens?> ExchangeCodeAsync(string code, string redirectUri, CancellationToken ct);

    /// <summary>Refresh Token으로 Access Token 갱신</summary>
    Task<GoogleOAuthTokens?> RefreshTokenAsync(string refreshToken, CancellationToken ct);
}