Abstract strategy detection to authentication API