C#C
C#2y ago
Vortac

Interface Design Question

I have an interface IAuthenticatable with one method: Task<Tokens> GetAccessTokensAsync() that I'd like to use for two different API authentication classes. However, the two authenticated API responses vary, so I'm just wondering what I should do. Use separete interfaces for each API?
Was this page helpful?