mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 12:49:37 +03:00
19 lines
541 B
Go
19 lines
541 B
Go
|
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"`
|
||
|
}
|