title: Firebase: Failed to validate MAC
body: <p>I am using fireauth and firego from <a href="https://github.com/zabawaba99" rel="nofollow">zabawaba99</a>. I am getting an error (please see below) when pushing data to my firebase database. I have been following his examples but I cannot get it to work. Someone got a idea why this is happening?</p>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>2016/06/03 14:30:13 {
    "error" : "Failed to validate MAC."
  }
  </code></pre>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>gen := fireauth.New("&lt;API-KEY/SECRET&gt;")
  
  data := fireauth.Data{"uid": "1"}
  token, err := gen.CreateToken(data, nil)
  if err != nil {
      log.Fatal(err)
  }
  
  fb := firego.New("https://myapp.firebaseio.com" , nil)
  log.Println(token)
  fb.Auth(token)
  
  for i := 0; i&lt;len(items); i++  {
  
      item := items[i]
  
      pushedItem, err := fb.Child("items").Push(items)
      if err != nil {
          log.Fatal(err) // error is happening here
      }
  
      var itemTest string
      if err := pushedItem.Value(&amp;itemTest); err != nil {
          log.Fatal(err)
      }
  
      fmt.Printf("%s: %s\n", pusedItem, itemTest)
  
  }
  </code></pre>