package
Version:
v0.0.0-...-8102089
Opens a new window with list of versions in this module.
Published: Nov 21, 2024
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
ClientID = utils.Getenv("OAUTH_GOOGLE_CLIENT_ID", "YOUR_CLIENT_ID")
ClientSecret = utils.Getenv("OAUTH_GOOGLE_CLIENT_SECRET", "YOUR_CLIENT_SECRET")
RedirectURL = utils.Getenv("OAUTH_REDIRECT_URL", "http://localhost:3000/auth/callback/:type")
)
Routes creates a REST router
type Callback struct {
Code string `json:"code"`
}
type UserGoogle struct {
Email string `json:"email"`
FamilyName string `json:"family_name"`
Gender string `json:"gender"`
GivenName string `json:"given_name"`
Id string `json:"id"`
Link string `json:"link"`
Locale string `json:"locale"`
Name string `json:"name"`
Picture string `json:"picture"`
VerifiedEmail bool `json:"veriefied_email"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.