// NewTokenVerifier returns a verifier that performs bearer token authorization.
NewTokenVerifier returns a verifier that performs bearer token authorization.
// NewTokenVerifier returns a verifier that performs bearer token authorization .
func NewTokenVerifier(tm tokenManager, endpoint, method string) *TokenVerifier {
	authTokens, err := tm.RequiredAuthTokens(endpoint, method)
	if err != nil {
		panic(fmt.Errorf("resolve authorization tokens: %w", err))
	}
	return &TokenVerifier{
		endpoint:   endpoint,
		authTokens: authTokens,
	}
}
func NewTokenVerifier ( tm tokenManager , endpoint , method string ) * TokenVerifier { authTokens , err := tm . RequiredAuthTokens ( endpoint , method ) if err != nil { panic ( fmt . Errorf ( " " , err ) ) } return & TokenVerifier { endpoint : endpoint , authTokens : authTokens , } }
NewTokenVerifier returns a verifier that performs bearer token authorization.
NewTokenVerifier returns a verifier that performs bearer token authorization .
// This would occur on startup due to bad configuration, so it's better to panic.