You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

user.go 705B

12345678910111213141516171819202122232425262728293031
  1. package goth
  2. import (
  3. "encoding/gob"
  4. "time"
  5. )
  6. func init() {
  7. gob.Register(User{})
  8. }
  9. // User contains the information common amongst most OAuth and OAuth2 providers.
  10. // All of the "raw" datafrom the provider can be found in the `RawData` field.
  11. type User struct {
  12. RawData map[string]interface{}
  13. Provider string
  14. Email string
  15. Name string
  16. FirstName string
  17. LastName string
  18. NickName string
  19. Description string
  20. UserID string
  21. AvatarURL string
  22. Location string
  23. AccessToken string
  24. AccessTokenSecret string
  25. RefreshToken string
  26. ExpiresAt time.Time
  27. IDToken string
  28. }