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: _includes/parse-server/third-party-auth.md
+5-2
Original file line number
Diff line number
Diff line change
@@ -128,12 +128,15 @@ As of Parse Server 3.5.0 you can use [Sign In With Apple](https://developer.appl
128
128
```js
129
129
{
130
130
"apple": {
131
-
"id":"jwt token for user",// required, used for validation
132
-
"access_token":"an authorized access token for the user", // optional
131
+
"id":"user",
132
+
"token":"the identity token for the user"
133
133
}
134
134
}
135
135
```
136
136
137
+
Using Apple Sign In on a iOS device will give you a `ASAuthorizationAppleIDCredential.user` string for the user identifier, which can be match the `sub` component of the JWT identity token.
138
+
Using Apple Sign In through the Apple JS SDK or through the REST service will only give you the JWT identity token (`id_token`) which you'll have to decompose to obtain the user identifier in its `sub` component. As an example you could use something like `JSON.parse(atob(token.split(".")[1])).sub`.
139
+
137
140
#### Configuring parse-server for Sign In with Apple
0 commit comments