method

Store.CreateAPIKey

Public method Store.CreateAPIKey from github.com/riducms/ridu/adapters/mongodb.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
keystore.AuthAPIKeyThe key value.
sessionTokenHashstringThe sessionTokenHash value.
nowtime.TimeThe now value.

Returns

The declared result.

error

Full signature

func (backend *Store) CreateAPIKey( ctx context.Context, key store.AuthAPIKey, sessionTokenHash string, now time.Time, ) error

Source adapters/mongodb/auth_api_keys.go:52

Related types

  • Store

    A replica-set implementation of Ridu’s document, snapshot, auth, preference, task, lock, upload, readiness, and migration contracts.

  • AuthAPIKey

    A persisted API-key digest and safe metadata.