auth.py 694 B

123456789101112131415161718
  1. """MakerWorld credential handling.
  2. MakerWorld downloads run on the same Bambu Cloud bearer token as the rest of
  3. the Bambu cloud integration — there is no separate MakerWorld OAuth flow. This
  4. module is the single seam where the MakerWorld provider reads the caller's
  5. stored token, reports a rejected/expired credential, and records a 401 so the
  6. whole app agrees the sign-in is dead (see ``cloud.mark_cloud_token_invalid``).
  7. """
  8. from __future__ import annotations
  9. from backend.app.services.bambu_cloud_credentials import (
  10. get_stored_token,
  11. is_cloud_token_invalid,
  12. mark_cloud_token_invalid,
  13. )
  14. __all__ = ["get_stored_token", "is_cloud_token_invalid", "mark_cloud_token_invalid"]