profile.go 428 B

12345678910111213141516171819
  1. // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
  2. // SPDX-License-Identifier: Apache-2.0
  3. package oauth2 // import "miniflux.app/v2/internal/oauth2"
  4. import (
  5. "fmt"
  6. )
  7. // Profile is the OAuth2 user profile.
  8. type Profile struct {
  9. Key string
  10. ID string
  11. Username string
  12. }
  13. func (p Profile) String() string {
  14. return fmt.Sprintf(`Key=%s ; ID=%s ; Username=%s`, p.Key, p.ID, p.Username)
  15. }