aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/markbates/goth/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/markbates/goth/user.go')
-rw-r--r--vendor/github.com/markbates/goth/user.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/github.com/markbates/goth/user.go b/vendor/github.com/markbates/goth/user.go
new file mode 100644
index 0000000000..1d6a419632
--- /dev/null
+++ b/vendor/github.com/markbates/goth/user.go
@@ -0,0 +1,30 @@
+package goth
+
+import (
+ "encoding/gob"
+ "time"
+)
+
+func init() {
+ gob.Register(User{})
+}
+
+// User contains the information common amongst most OAuth and OAuth2 providers.
+// All of the "raw" datafrom the provider can be found in the `RawData` field.
+type User struct {
+ RawData map[string]interface{}
+ Provider string
+ Email string
+ Name string
+ FirstName string
+ LastName string
+ NickName string
+ Description string
+ UserID string
+ AvatarURL string
+ Location string
+ AccessToken string
+ AccessTokenSecret string
+ RefreshToken string
+ ExpiresAt time.Time
+}