Documentation
¶
Index ¶
Constants ¶
View Source
const (
GoogleClientID = "407408718192.apps.googleusercontent.com"
)
Variables ¶
View Source
var ( GoogleAuthorizeURL = "https://accounts.google.com/o/oauth2/v2/auth" GoogleTokenURL = "https://oauth2.googleapis.com/token" GoogleUserInfoURL = "https://openidconnect.googleapis.com/v1/userinfo" AntigravityProjectsURL = "https://antigravity.ai/api/v1/projects" )
View Source
var DefaultScopes = []string{"openid", "email", "profile", "https://www.googleapis.com/auth/cloud-platform.read-only"}
Functions ¶
func CodeChallenge ¶
Types ¶
type Session ¶
type Session struct {
State string `json:"state"`
CodeVerifier string `json:"codeVerifier"`
RedirectURI string `json:"redirectUri"`
}
func NewSession ¶
func (Session) ValidateCallback ¶
type Token ¶
type Token struct {
AccessToken string `json:"accessToken"`
RefreshToken string `json:"refreshToken,omitempty"`
TokenType string `json:"tokenType,omitempty"`
Expiry int64 `json:"expiry,omitempty"`
Scopes []string `json:"scopes,omitempty"`
IDToken string `json:"idToken,omitempty"`
}
func ExchangeCode ¶
Click to show internal directories.
Click to hide internal directories.