method

Store.FindSession

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

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
tokenHashstringThe tokenHash value.
nowtime.TimeThe now value.

Returns

The declared result.

(store.AuthSession, error)

Full signature

func (backend *Store) FindSession( ctx context.Context, tokenHash string, now time.Time, ) (store.AuthSession, error)

Source adapters/postgres/auth.go:266

Related types

  • Store

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

  • AuthSession

    A persisted opaque session digest and safe metadata.