MCPcopy Create free account
hub / github.com/daodst/chat / Username

Method Username

clientapi/auth/user_interactive.go:76–82  ·  view source on GitHub ↗

Username returns the user localpart/user_id in this request, if it exists.

()

Source from the content-addressed store, hash-verified

74
75// Username returns the user localpart/user_id in this request, if it exists.
76func (r *Login) Username() string {
77 if r.Identifier.Type == "m.id.user" {
78 return r.Identifier.User
79 }
80 // deprecated but without it Element iOS won't log in
81 return r.User
82}
83
84// ThirdPartyID returns the 3PID medium and address for this login, if it exists.
85func (r *Login) ThirdPartyID() (medium, address string) {

Callers 8

TestLoginFromJSONReaderFunction · 0.80
LoginMethod · 0.80
LoginMethod · 0.80
LoginMethod · 0.80
LoginMethod · 0.80
DeactivateFunction · 0.80
DeleteDeviceByIdFunction · 0.80
completeAuthFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestLoginFromJSONReaderFunction · 0.64