From 5259b7ca8cd11326422b89e04cbc0ace8b0061f0 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Thu, 16 Apr 2020 16:00:45 -0700 Subject: [PATCH] [docs] Fix authsession docs --- docs/pages/versions/unversioned/sdk/auth-session.md | 8 ++++---- docs/pages/versions/v37.0.0/sdk/auth-session.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/pages/versions/unversioned/sdk/auth-session.md b/docs/pages/versions/unversioned/sdk/auth-session.md index 449458b82c1c3..d59bbe0c496ea 100644 --- a/docs/pages/versions/unversioned/sdk/auth-session.md +++ b/docs/pages/versions/unversioned/sdk/auth-session.md @@ -62,7 +62,9 @@ const FB_APP_ID = 'YOUR_APP_ID'; /* @end */ /* @info Web only: This method should be invoked on the page that the auth popup gets redirected to on web, it'll ensure that authentication is completed properly. On native this does nothing. */ -WebBrowser.maybeCompleteAuthSession(); +if (Platform.OS === 'web') { + WebBrowser.maybeCompleteAuthSession(); +} /* @end */ export default function App() { @@ -91,9 +93,7 @@ export default function App() { return (