react-native-linkedin-sdk
react-native-linkedin-sdk copied to clipboard
Find out if webview was used instead of Linkedin view.
Is there a way to find out that web view was used to login instead of the linkedin app.
I want to use the token server side. If the linkedin app was used I need to pass the additional header 'x-li-src' : 'msdk', but when the web view was used I can't use this header.
Is there a way to find out which of the two login possibilities were used?
@BenBach I'm having the same issue. Have you been able to fix this?
Oh actually I found out that the LinkedIn.signIn() returns an object containing a fromMobileSDK boolean!