method

Store.CreateSession

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

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
sessionstore.AuthSessionThe session value.
expectedPasswordHash[]byteThe expectedPasswordHash value.

Returns

The declared result.

error

Full signature

func (backend *Store) CreateSession( ctx context.Context, session store.AuthSession, expectedPasswordHash []byte, ) error

Source adapters/postgres/auth.go:191

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.