Reference documentation and code samples for the Google Auth Library Client class UpdateMetadataInterface.
Describes a Credentials object which supports updating request metadata (request headers).
Classes which implement this interface in this package:
Namespace
Google \ AuthMethods
updateMetadata
Updates metadata with the authorization token.
| Parameters | |
|---|---|
| Name | Description |
metadata |
array
metadata hashmap |
authUri |
string
optional auth uri |
httpHandler |
callable|null
callback which delivers psr7 request |
| Returns | |
|---|---|
| Type | Description |
array |
updated metadata hashmap |
Constants
AUTH_METADATA_KEY
Value: 'authorization'