本站源代码
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

31 行
679B

  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. }
上海开阖软件有限公司 沪ICP备12045867号-1