Experiencing some rather odd issues with Firebase.. I have installed firebase through cocoaPods, included the GoogleService-Info.plist, etc - but when I try to read a value from Firebase, I get this error:
2016-06-16 12:10:04.598 MP[78421:13128189] [FirebaseDatabase] Authentication failed: invalid_token (Invalid claim 'aud' in auth token.)
I have gotten this every single time I have tried to start a new project, except from one time - but I have abandoned that project now, as I am starting a new one. Here is the simple code:
import UIKit
import Firebase
import FirebaseDatabase
class ViewController: UIViewController {
var ref:FIRDatabaseReference!
override func viewDidLoad() {
super.viewDidLoad()
ref = FIRDatabase.database().reference()
ref.observeSingleEventOfType(.Value) { (snapshot:FIRDataSnapshot) in
var val = snapshot.value! as? String
print(val)
}
}
}
How can I fix this?