firebase adapter