Exchange tokens for LinkedIn

I have embedded login with LinkedIn implemented and now I don’t have a clue how to exchange LinkedIn token with Auth0 to get credentials as I do get them in case of Sign in with Apple.
There used to be an SDK method “auth0.loginSocial” but cannot find it.
Can you please explain how I can achieve this?

This is for Swift on iOS.