MCPcopy Create free account
hub / github.com/tiny-pilot/tinypilot / _get_credentials_last_changed

Function _get_credentials_last_changed

app/session.py:139–145  ·  view source on GitHub ↗

Returns a timestamp or None if there is no logged-in user.

()

Source from the content-addressed store, hash-verified

137
138
139def _get_credentials_last_changed():
140 """Returns a timestamp or None if there is no logged-in user."""
141 if 'credentials_last_changed' not in flask.session:
142 return None
143
144 return datetime.datetime.fromisoformat(
145 flask.session['credentials_last_changed'])
146
147
148def get_username():

Callers 1

is_auth_validFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected