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.
Click to show internal directories.
Click to hide internal directories.