Versions in this module Expand all Collapse all v0 v0.1.1 Oct 25, 2026 v0.1.0 Oct 12, 2026 Changes in this version + const RecentSignIn + var ErrNoSession = errors.New("identity: no valid session") + func NewContext(ctx context.Context, id Identity) context.Context + type Identity struct + Email string + EmailVerified bool + SignedInAt time.Time + Subject string + func FromContext(ctx context.Context) (Identity, bool) + func (id Identity) Recent(now time.Time) bool + type Provider interface + Authenticate func(r *http.Request) (Identity, error) + Delete func(ctx context.Context, r *http.Request) error + Logout func(w http.ResponseWriter, r *http.Request) error + Name func() string