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/postgres.

Source adapters/postgres/auth.go:393

@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 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.