MCPcopy
hub / github.com/tinode/chat / ErrAuthRequiredReply

Function ErrAuthRequiredReply

server/datamodel.go:1256–1258  ·  view source on GitHub ↗

ErrAuthRequiredReply authentication required - user must authenticate first in response to a client request (401).

(msg *ClientComMessage, ts time.Time)

Source from the content-addressed store, hash-verified

1254// ErrAuthRequiredReply authentication required - user must authenticate first
1255// in response to a client request (401).
1256func ErrAuthRequiredReply(msg *ClientComMessage, ts time.Time) *ServerComMessage {
1257 return ErrAuthRequired(msg.Id, msg.Original, ts, msg.Timestamp)
1258}
1259
1260// ErrAuthFailed authentication failed
1261// with explicit server and incoming request timestamps (401).

Callers 2

dispatchMethod · 0.85
helloMethod · 0.85

Calls 1

ErrAuthRequiredFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…