Comments (5)
Thanks for the notice - in fact, it was me who refactored the Token Generator for version 3.0 😄
On the other hand - is there a reason why you require firebase/token-generator explicitly instead of using the (2.x) dependency that automatically comes with the bundle?
from firebase-bundle.
Oh, I see now - the README is not specific enough, sorry for the inconvenience! Until I update the package(s), please require the token generator with the ^2.1
constraint:
composer require firebase/token-generator "^2.1"
from firebase-bundle.
Actually I was using code from the documentation, which lead me to this error.
$firebase = $this->container->get('kreait_firebase.connection.main');
$tokenGenerator = $firebase->getConfiguration()->getAuthTokenGenerator();
$adminToken = $tokenGenerator->createAdminToken();
$firebase->setAuthToken($adminToken);
Thanks for the update, I'm already using directly token-generator to generate token for now, but wanted to open issue, so it can be fixed for others.
from firebase-bundle.
@iBasit Could you try with the current 0.5 release, please? When updating the version, please also remove the firebase/token-generator
dependency from your main composer.json
file - as I said, the latest Token Generator is already included with with the firebase library.
Please let me know if it still doesn't work (or if it does). Cheers!
from firebase-bundle.
Works fine now 👍
from firebase-bundle.
Related Issues (20)
- Messaging sendAll() does not return correct feedback when there's an errorneous request HOT 3
- Compatibiliy for symfony 5 HOT 2
- kreait_firebase.my_project.messaging HOT 8
- There is no extension able to load the configuration for "kreait_firebase" HOT 3
- The definition for "kreait\firebase\factory" has no class. HOT 9
- Symfony secrets management support HOT 2
- [feature request] Trigger Event(s) HOT 2
- CloudMessage in service ? HOT 4
- Ability to use guzzle middleware? HOT 2
- PHP 8 Support HOT 2
- Failed to load class Google\Cloud\Firestore\FirestoreClient used by typed property Kreait\Firebase\Firestore::$client during preloading HOT 5
- Symfony 6 compatibility HOT 1
- 2.6.0 calls setDeprecated with incorrect parameters for Symfony 4.4 HOT 2
- Feature request: support for FCM localization HOT 1
- Cannot autowire "Kreait\Firebase\Contract\Auth" HOT 2
- Symfony 6.1 Support HOT 1
- Cannot autowire service "App\Service\PushService": argument "$messaging" of method "__construct()" references interface "Kreait\Firebase\Contract\Messaging" but no such service exists HOT 15
- [Possible Bug] sendMulticast isn't working anymore. HOT 4
- Use a proxy ? HOT 4
- Overriding project id per configuration entry HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-bundle.