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

Method AddAuthRecord

server/store/store.go:354–358  ·  view source on GitHub ↗

AddAuthRecord creates a new authentication record for the given user.

(uid types.Uid, authLvl auth.Level, scheme, unique string, secret []byte,
	expires time.Time)

Source from the content-addressed store, hash-verified

352
353// AddAuthRecord creates a new authentication record for the given user.
354func (usersMapper) AddAuthRecord(uid types.Uid, authLvl auth.Level, scheme, unique string, secret []byte,
355 expires time.Time) error {
356
357 return adp.AuthAddRecord(uid, scheme, scheme+":"+unique, authLvl, secret, expires)
358}
359
360// UpdateAuthRecord updates authentication record with a new secret and expiration time.
361func (usersMapper) UpdateAuthRecord(uid types.Uid, authLvl auth.Level, scheme, unique string,

Callers

nothing calls this directly

Calls 1

AuthAddRecordMethod · 0.65

Tested by

no test coverage detected