Different forges support different auth methods (personal tokens, app tokens, OAuth). Even within a single forge like GitHub there are multiple options.
Define a common auth interface so callers can swap auth methods without changing the rest of their code. Something like a GetToken(namespace, repo) method that returns the right credential regardless of how it was obtained.
Different forges support different auth methods (personal tokens, app tokens, OAuth). Even within a single forge like GitHub there are multiple options.
Define a common auth interface so callers can swap auth methods without changing the rest of their code. Something like a GetToken(namespace, repo) method that returns the right credential regardless of how it was obtained.