buffet: Do not remove credentials when invalid_grant.
Change Buffet to not to remove credentials when gcd returns invalid_grant.
The decision to remove credentials is handled outside buffet.
This allows us to not to loose the device permanently in case of short
duartion/temporary GAIA outage (similar to the one happened recently).
TEST=Tested following scenarios on Gale
1. Factory reset from APP when Gale is online.
2. Factory reset from APP when Gale is offline.
3. Verify that the device reconnects back when credentials are removed
from cloud and restored after 1 hour and device authenticates,reconnects
successfully and operates normally there after.
Reviewed-by: Kan Yan <email@example.com>
1 file changed