Forked from kanzitelli/React-Native-WebView-Cookies.js
Created
July 27, 2017 01:10
-
-
Save xxxxlr/475bd734fe49d776370633461164c361 to your computer and use it in GitHub Desktop.
React Native Trick: Get Cookies of WebView without using any native modules such as react-native-cookies. Might be helpful for getting JWT while making OAuth2 👽
Hey, small issue I encountered, why the code returns only ~30% of the actual cookies?
encountered the same issue, it doesn't return complete cookies
the output is something like below:
["okta-oauth-nonce=wTMKiRCNxXPV8ooXPQ0pYLtlbvlzfV0SsjeH4s9NpquArJjzWu9ZbUl6es4deVyb", " okta-oauth-state=X5AKl6fUj3hGDFf3BsGsnzxyXyMhuuc73lsvzYZHy5s8viUbZ8fUjNIZVJsMMxhs", " ln=[email protected]"]
It's won't work if HttpOnly flag for cookie been provided
+1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Rohitsaxena THANK YOU SO MUCH.
I tought my app was over, but you saved me, you solution worked
Btw thx @xxxxlr, without your gist nothing would've come