From dc8668b9040ad99d30dd32ae7fe5b51b68ec8e99 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 22 Oct 2018 20:49:10 -0700 Subject: Improve logging for OAuth2 callback --- oauth2/profile.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'oauth2') 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) +} -- cgit v1.2.3