There are some ways to fix this:
- Remove dependency and let users install it manually as needed, the token generator isn't really a hard dependency of Firebase anyway
- Expose the dependency from the firebase module:
var Firebase = require('firebase')
FirebaseTokenGenerator = Firebase.TokenGenerator