method

Store.FindSession

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

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

Source adapters/mongodb/auth_sessions.go:273

@param ctx
The ctx value.
@param tokenHash
The tokenHash 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.

  • AuthSession

    A persisted opaque session digest and safe metadata.