MCPcopy Index your code
hub / github.com/tinode/chat / authenticator

Struct authenticator

server/auth/code/auth_code.go:20–26  ·  view source on GitHub ↗

authenticator is a singleton instance of the authenticator.

Source from the content-addressed store, hash-verified

18
19// authenticator is a singleton instance of the authenticator.
20type authenticator struct {
21 name string
22 codeLength int
23 maxCodeValue *big.Int
24 lifetime time.Duration
25 maxRetries int
26}
27
28// Init initializes the authenticator: parses the config and sets internal state.
29func (ca *authenticator) Init(jsonconf json.RawMessage, name string) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected