MCPcopy Create free account
hub / github.com/tinode/chat / PreCheck

Method PreCheck

server/validate/validator.go:27–27  ·  view source on GitHub ↗

PreCheck pre-validates the credential without sending an actual request for validation: check uniqueness (if appropriate), format, etc Returns normalized credential prefixed with an appropriate namespace prefix.

(cred string, params map[string]any)

Source from the content-addressed store, hash-verified

25 // check uniqueness (if appropriate), format, etc
26 // Returns normalized credential prefixed with an appropriate namespace prefix.
27 PreCheck(cred string, params map[string]any) (string, error)
28
29 // Request sends a request for validation to the user. Returns true if it's a new credential,
30 // false if it re-sent request for an existing unconfirmed credential.

Callers 2

rewriteTagFunction · 0.65
replyCreateUserFunction · 0.65

Implementers 2

validatorserver/validate/email/validate.go
validatorserver/validate/tel/validate.go

Calls

no outgoing calls

Tested by

no test coverage detected