How should authentication be implemented to fit in the Clean Architecture pattern?
Say I need a token (oauth, googleapi, I see you) for some of my API requests. How should I get this token from my login screen and User Repository to my RandomDataRepository for example?
It seems strange to put that in each of my RandomData Use Cases, and strange too to have my remote RandomData layer talking to another Repository module.
Should the token be passed for every request (kinda ugly if my repository can switch from cache / remote), or should it be injected once and referenced somewhere, like in an interceptor?
I found this but I don't understand the login worfklow and there's no full code)
Thanks !