Skip to content

Commit c3c825d

Browse files
SebC99TomWFox
authored andcommitted
Update apple sign in documentation (#662)
1 parent 11dcc52 commit c3c825d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

_includes/parse-server/third-party-auth.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,15 @@ As of Parse Server 3.5.0 you can use [Sign In With Apple](https://developer.appl
128128
```js
129129
{
130130
"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"
133133
}
134134
}
135135
```
136136

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+
137140
#### Configuring parse-server for Sign In with Apple
138141

139142
```js

0 commit comments

Comments
 (0)