MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _parse_at_expires

Method _parse_at_expires

src/services/token_manager.py:79–85  ·  view source on GitHub ↗
(self, value: Optional[str])

Source from the content-addressed store, hash-verified

77 return 120
78
79 def _parse_at_expires(self, value: Optional[str]) -> Optional[datetime]:
80 if not value:
81 return None
82 try:
83 return datetime.fromisoformat(str(value).replace("Z", "+00:00"))
84 except Exception:
85 return None
86
87 def _as_utc(self, value: Optional[datetime]) -> Optional[datetime]:
88 if not value:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected