method

Store.CreateAPIKey

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

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/postgres/auth.go:440

Related types

  • Store

    A PostgreSQL implementation of Ridu’s document, snapshot, auth, preference, task, job, lock, upload-reference, and migration store contracts.

  • AuthAPIKey

    A persisted API-key digest and safe metadata.