本站源代码
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.

31 line
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