gemini_oauth.go 463 B

12345678910111213
  1. package service
  2. import (
  3. "context"
  4. "github.com/Wei-Shaw/sub2api/internal/pkg/geminicli"
  5. )
  6. // GeminiOAuthClient performs Google OAuth token exchange/refresh for Gemini integration.
  7. type GeminiOAuthClient interface {
  8. ExchangeCode(ctx context.Context, oauthType, code, codeVerifier, redirectURI, proxyURL string) (*geminicli.TokenResponse, error)
  9. RefreshToken(ctx context.Context, oauthType, refreshToken, proxyURL string) (*geminicli.TokenResponse, error)
  10. }