flexmeasures.auth.tokens
JSON API token lifecycle backed by Flask-Security refresh trackers.
Functions
- flexmeasures.auth.tokens.exchange_refresh_token(token: str, *, revoke: bool = False) tuple[dict, int]
Validate, rotate or revoke within one transaction holding the family lock.