code: protected static function buildAuthorizationHeader(string $method, string $token, string $password = null)
      {
          switch ($method) {
              case Client::AUTH_HTTP_PASSWORD:
                  return 'Basic '.base64_encode("$token:$password");
              case Client::AUTH_OAUTH_TOKEN:
                  return "Bearer $token";
          }
  
          throw new RuntimeException(sprintf('Authentication method "%s" not implemented.', $method));
      }
docs: Build the authentication header to be attached to the request.
  
  @param string      $method
  @param string      $token
  @param string|null $password
  
  @throws \Snaptier\API\Exception\RuntimeException
  
  @return string