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:
parent
f06a19814b
commit
dc8668b904
2 changed files with 14 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue