package auth import ( "context" "net/http" ) type GetClaimFunc func(ctx context.Context, r *http.Request, claimName string) (string, error) type Option struct { GetClaim GetClaimFunc } type OptionFunc func(*Option) func WithGetClaim(fn GetClaimFunc) OptionFunc { return func(o *Option) { o.GetClaim = fn } }