1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Improve logging for OAuth2 callback

This commit is contained in:
Frédéric Guillot 2018-10-22 20:49:10 -07:00
parent f06a19814b
commit dc8668b904
2 changed files with 14 additions and 2 deletions

View file

@ -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)
}