mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-12 21:51:02 +00:00
21 lines
515 B
Go
21 lines
515 B
Go
package login
|
|
|
|
import (
|
|
common "github.com/nxshock/signaller/internal/models/common"
|
|
)
|
|
|
|
type LoginReply struct {
|
|
AccessToken string `json:"access_token"`
|
|
HomeServer string `json:"home_server,omitempty"` // TODO: check api
|
|
UserID string `json:"user_id"`
|
|
}
|
|
|
|
type Flow struct {
|
|
Type common.AuthenticationType `json:"type"`
|
|
}
|
|
|
|
// https://matrix.org/docs/spec/client_server/latest#get-matrix-client-r0-login
|
|
type GetLoginReply struct {
|
|
Flows []Flow `json:"flows"` // The homeserver's supported login types
|
|
}
|