You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,10 +126,19 @@ On the simulator you may see this message if you have more than one app with the
126
126
127
127
```
128
128
[FirebaseDatabase] Authentication failed: invalid_token (Invalid claim 'aud' in auth token.)
129
+
or
130
+
[FirebaseDatabase] Authentication failed: invalid_token (audience was project 'firegroceries-904d0' but should have been project 'your-firebase-project')
129
131
```
130
132
131
133
This is [a known issue in the Firebase SDK](http://stackoverflow.com/questions/37857131/swift-firebase-database-invalid-token-error).
132
-
I always use a real device to avoid this problem.
134
+
I always use a real device to avoid this problem, but you can pass an 'iOSSimulatorFlush' option to init.
135
+
```
136
+
firebase.init({
137
+
// Optionally pass in properties for database, authentication and cloud messaging,
138
+
// see their respective docs and 'iOSSimulatorFlush' to flush token before init.
0 commit comments