aboutsummaryrefslogtreecommitdiffhomepage
path: root/oauth2
diff options
context:
space:
mode:
Diffstat (limited to 'oauth2')
-rw-r--r--oauth2/profile.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/oauth2/profile.go b/oauth2/profile.go
index b43f07c..471b478 100644
--- a/oauth2/profile.go
+++ b/oauth2/profile.go
@@ -4,9 +4,17 @@
package oauth2 // import "miniflux.app/oauth2"
+import (
+ "fmt"
+)
+
// Profile is the OAuth2 user profile.
type Profile struct {
Key string
ID string
Username string
}
+
+func (p Profile) String() string {
+ return fmt.Sprintf(`ID=%s ; Username=%s`, p.ID, p.Username)
+}