You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
541 B
18 lines
541 B
package indieauth |
|
|
|
// Profile represents optional profile data that is returned |
|
// when completing the IndieAuth flow. |
|
type Profile struct { |
|
Name string `json:"name"` |
|
URL string `json:"url"` |
|
Photo string `json:"photo"` |
|
} |
|
|
|
// Response the response returned when completing |
|
// the IndieAuth flow. |
|
type Response struct { |
|
Me string `json:"me,omitempty"` |
|
Profile Profile `json:"profile,omitempty"` |
|
Error string `json:"error,omitempty"` |
|
ErrorDescription string `json:"error_description,omitempty"` |
|
}
|
|
|