Help us shape the future of Go! Take the 2026 Go Developer Survey

hook

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package hook runs the application hooks the providers call. Its functions are safe for concurrent use when the hook is.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunOnLogin

func RunOnLogin(ctx context.Context, onLogin auth.Hook, identity *auth.Identity) (*auth.Identity, error)

RunOnLogin returns what onLogin makes of identity, or identity itself when onLogin is nil. A hook error is wrapped with %w, so a refusal keeps its kind (status); a hook returning no identity is an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL