Building better APIs: from Django to client libraries with OpenAPI - guest post by Harald Nezbeda ⭐️
https://www.djangoproject.com/weblog/2025/aug/13/building-better-apis-django-to-clients-openapi/
openapi
I wrote about solving a problem I kept running into: how to handle Bearer token authentication safely in Swift OpenAPI clients without fighting the concurrency
system.
Mostly sharing this because the actor-based approach worked out cleaner than I expected, and might be useful if you're dealing with similar problems.
Article: https://aleahim.com/TokenMiddeware/
Code: https://github.com/mihaelamj/BearerTokenAuthMiddleware