getProvider method
Gets the authentication provider configuration
providerKey The provider key to retrieve
Returns the provider configuration
Throws AuthException if provider is not found
Implementation
@override
Map<String, dynamic> getProvider(String providerKey) {
final config = _getAuthConfig();
final providers = config['providers'] as Map<String, dynamic>?;
if (providers == null || !providers.containsKey(providerKey)) {
throw AuthException(
'Authentication provider "$providerKey" not found in configuration.',
);
}
return providers[providerKey] as Map<String, dynamic>;
}