method

Store.CreateAPIKey

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

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/sqlite/auth.go:452

Related types

  • Store

    A SQLite implementation of Ridu’s document, snapshot, auth, preference, task, lock, version, and migration store contracts.

  • AuthAPIKey

    A persisted API-key digest and safe metadata.