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
@@ -228,56 +228,121 @@ This library works on MacOS 10.15+ if using in conjunction with [react-native-ma
228
228
229
229
### Web (not react-native-web, but that may come as a follow-on, this is pure web at the moment)
230
230
231
+
### WebView
232
+
231
233
#### 1. Initial set-up
232
-
- Ensure you follow the android steps above.
233
-
- Install the [web counterpart](https://github.com/A-Tokyo/react-apple-signin-auth)`yarn add react-apple-signin-auth` in your web project.
234
+
- Make sure to correctly configure your Apple developer account to allow for proper web based authentication.
235
+
- 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).
236
+
- Your backend needs to implement web based authentification
234
237
235
-
#### 2. Implement the login process on web
238
+
#### 2. Implement the login process
236
239
```js
237
-
importAppleSigninfrom'react-apple-signin-auth';
238
-
239
-
/** Apple Signin button */
240
-
constMyAppleSigninButton= ({ ...rest }) => (
241
-
<AppleSignin
242
-
/** Auth options passed to AppleID.auth.init() */
243
-
authOptions={{
244
-
clientId:'SAME AS ANDROID',
245
-
redirectURI:'SAME AS ANDROID',
246
-
scope:'email name',
247
-
state:'state',
248
-
/** sha256 nonce before sending to apple to unify with native firebase behavior - https://github.com/invertase/react-native-apple-authentication/issues/28 */
249
-
nonce:sha256('nonce'),
250
-
/** We have to usePopup since we need clientSide authentication */
- See [Serverside Verification](#serverside-verification)
279
341
- Ensure that you pass the clientID as the web service ID, not the native app bundle. Since the project utilizes the service ID for authenticating web and android.
0 commit comments