Hayden Hargreaves 983d326a47 (FIX): Auth seems to be working much better!
Finally, thank god. I still want a better way to manage the cookies. But
not right now.
2025-11-14 23:31:23 -07:00

27 lines
742 B
Go

package domain
import "time"
// GoogleUserInfo is a data type which contains a mapping of the Google User Info API call.
type GoogleUserInfo struct {
Id string `json:"Id"`
Email string `json:"Email"`
Verified bool `json:"VerifiedEmail"`
Name string `json:"Name"`
GivenName string `json:"GivenName"`
FamilyName string `json:"FamilyName"`
Picture string `json:"Picture"`
}
// User is the database model of a user. There is no need to map to a different model so
// this will remain in the domain.
type User struct {
Id int
GoogleId string
Name string
Email string
ImageUrl string
GoogleRefreshToken string
Created time.Time
}