flexmeasures.auth.datastore

Serialize validation and rotation of a refresh-token family.

Classes

class flexmeasures.auth.datastore.FlexMeasuresUserDatastore(session: sqlalchemy.orm.scoping.scoped_session, user_model: t.Type[UserMixin], role_model: t.Type[RoleMixin], webauthn_model: t.Type[WebAuthnMixin] | None = None, refresh_tracker_model: t.Type[RefreshTrackerMixin] | None = None)
find_refresh_tracker(refresh_family: str) → RefreshTokenTracker | None

Returns a refresh tracker matching the id.

Added in version 5.9.0.