You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+103-43
Original file line number
Diff line number
Diff line change
@@ -221,52 +221,110 @@ async function onAppleButtonPress() {
221
221
}
222
222
```
223
223
224
-
225
-
### Web (not react-native-web, but that may come as a follow-on, this is pure web at the moment)
226
-
224
+
### WebView
227
225
#### 1. Initial set-up
228
-
- Ensure you follow the android steps above.
229
-
- Install the [web counterpart](https://github.com/A-Tokyo/react-apple-signin-auth)`yarn add react-apple-signin-auth` in your web project.
226
+
- Make sure to correctly configure your Apple developer account to allow for proper web based authentication.
227
+
- Install the [React Native WebView](https://github.com/react-native-webview/react-native-webview)`yarn add react-native-webview` (or) `npm i react-native-webview` in your project. [Link native dependencies](https://github.com/react-native-webview/react-native-webview/blob/master/docs/Getting-Started.md#2-link-native-dependencies).
228
+
- Your backend needs to implement web based authentification
230
229
231
-
#### 2. Implement the login process on web
230
+
#### 2. Implement the login process
232
231
```js
233
-
importAppleSigninfrom'react-apple-signin-auth';
234
-
235
-
/** Apple Signin button */
236
-
constMyAppleSigninButton= ({ ...rest }) => (
237
-
<AppleSignin
238
-
/** Auth options passed to AppleID.auth.init() */
239
-
authOptions={{
240
-
clientId:'SAME AS ANDROID',
241
-
redirectURI:'SAME AS ANDROID',
242
-
scope:'email name',
243
-
state:'state',
244
-
/** sha256 nonce before sending to apple to unify with native firebase behavior - https://github.com/invertase/react-native-apple-authentication/issues/28 */
245
-
nonce:sha256('nonce'),
246
-
/** We have to usePopup since we need clientSide authentication */
0 commit comments