- Adopted rest-core 4.0.0
-
Raise the default
max_redirects
from 1 to 5 because Firebase introduced an extra redirect for EventSource. 2 is enough in theory but to make it more future compatible, we set the default to 5 for now. If Firebase really needs more than 5 redirects, you could also workaround this by settingmax_redirects
to another number while setting up the client. For example:client = RestFirebase.new(:max_redirects => 10) # or client = RestFirebase.new client.max_redirects = 10
This works for any version of rest-firebase. Thanks @chanibarin See: #7
- Fixed a bug where it would try to encode JSON twice upon retrying.
- Ruby 2.2 compatibility
- Encode query in JSON to make using Firebase queries easy.
- Introduced
max_retries
,retry_exceptions
, anderror_callback
from latest rest-core (3.5.0+). See README.md for detail.
- Encode payload in JSON with middleware from rest-core
- Base64url encoded JWT would no longer contain any newlines.
- Should really properly refresh the auth (query)
- From now on you're not allowed to change the value of query.
- Adopted rest-core 3.3.0
- Introduce
RestFirebase#auth_ttl
to setup when to refresh the auth token. Default to 23 hours (82800 seconds) - Properly refresh the auth token by resetting
RestFirebase#iat
.
- Now it would auto-refresh auth if it's also expired (>= 23 hours)
- Now it would properly send JSON payload and headers.
- Birthday!