iOS Auth0 SDK
- SDK Version: 1.36.0
Hi There
How do I pass additional custom headers to auth0 request when using Auth0.authentication() .login
in auth0 SDK (iOS)?
We need to pass some additional headers to auth0 login request that will contain telemetry information for our servers for Bot Detection.
Code Snippet
Auth0 .authentication() .login( usernameOrEmail: username, password: password, realm: "Test", audience: "https://test.com/", scope: scope, parameters: parameters) .start { result in switch result { case .success(let credentials): guard let accessToken = credentials.accessToken else { completion(false, CustomError.generalError("Auth0 doesn't return access token.")) return }