code: def base64url_to_long(data):
      
      _data = as_bytes(data)
      _d = base64.urlsafe_b64decode(_data + b'==')
      # verify that it's base64url encoded and not just base64
      # that is no '+' and '/' characters and not trailing "="s.
      if [e for e in [b'+', b'/', b'='] if e in _data]:
          raise ValueError("Not base64url encoded")
      return intarr2long(struct.unpack('%sB' % len(_d), _d))
docs: Stricter then base64_to_long since it really checks that it's
      base64url encoded
  
      :param data: The base64 string
      :return: