I have generated myself a service account with .json file for Firebase Admin PHP SDK authorization.
Aside from that, I would want to use the same service account for authenticating Clodfunctions API calls, without the need for authorizing another service account and getting token for it (that'll be used in API calls).
Is there a way to extract the access token from Factory object I initialized with my service account .json file?
More on Factory initialization is explained here. I went through source code but none of the methods exist that would give me this option. Some of them could potentially store this data, but they are all private; used only inside core classes used for communication with Firebase database.