response.go 541 B

123456789101112131415161718
  1. package indieauth
  2. // Profile represents optional profile data that is returned
  3. // when completing the IndieAuth flow.
  4. type Profile struct {
  5. Name string `json:"name"`
  6. URL string `json:"url"`
  7. Photo string `json:"photo"`
  8. }
  9. // Response the response returned when completing
  10. // the IndieAuth flow.
  11. type Response struct {
  12. Me string `json:"me,omitempty"`
  13. Profile Profile `json:"profile,omitempty"`
  14. Error string `json:"error,omitempty"`
  15. ErrorDescription string `json:"error_description,omitempty"`
  16. }