method

Store.CreateAPIKey

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

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

Source adapters/mongodb/auth_api_keys.go:52

@param ctx
The ctx value.
@param key
The key value.
@param sessionTokenHash
The sessionTokenHash value.
@param now
The now value.
@returns
The declared result.

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.