MCPcopy Index your code
hub / github.com/GoogleCloudPlatform/cloud-sql-python-connector / refresh

Method refresh

tests/unit/mocks.py:56–61  ·  view source on GitHub ↗

Refreshes the access token.

(self, _: Callable)

Source from the content-addressed store, hash-verified

54 return Credentials
55
56 def refresh(self, _: Callable) -> None:
57 """Refreshes the access token."""
58 self.token = "12345"
59 self.expiry = datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(
60 minutes=60
61 )
62
63 @property
64 def expired(self) -> bool:

Callers 2

_downscope_credentialsFunction · 0.80
get_connection_infoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected