Description
Describe the feature you would like to see
Thank you for your continuous development and maintenance of the Firebase PHP Admin SDK.
Feature Request Description
I would like to request support for specifying a service account ID when creating custom tokens, similar to how it's implemented in other Firebase Admin SDKs.
Current Situation
Currently, the Firebase PHP Admin SDK only supports creating custom tokens using the service account credentials loaded during initialization. There's no way to specify a different service account ID for token signing.
Proposed Feature
Add support for specifying a service account ID when creating custom tokens. This would allow using a different service account for token signing than the one used to initialize the SDK.
The feature would be particularly useful when running in Google-managed environments where you want to maintain consistency across different parts of your application by using a specific service account for token signing, without needing to include service account JSON files in your code.
Example Implementation (in Go)
Here's how it works in the Go Admin SDK:
conf := &firebase.Config{
ServiceAccountID: "[email protected]",
}
app, err := firebase.NewApp(context.Background(), conf)
Related Documentation
Would love to hear your thoughts on this feature request. Thank you for considering it!