June 2017
Intermediate to advanced
400 pages
10h 32m
English
Firebase uses OAuth2 for authentication. In this case, we downloaded a credentials file that can be used, along with a request for appropriate scopes, to return a token that may work with the Firebase database. We can store any sort of structured map-like object. In this case, we store map[string]interface{}.
The client code wraps all operations in an interface for ease of testing. This is a common pattern when writing client code and is also used in other recipes.
Read now
Unlock full access