We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4452556 commit f3b9a43Copy full SHA for f3b9a43
Provider.php
@@ -117,6 +117,23 @@ protected function getUserByToken($token)
117
return json_decode(base64_decode($claims), true);
118
}
119
120
+ /**
121
+ * Return the user given the identity token provided on the client
122
+ * side by Apple.
123
+ *
124
+ * @param string $token
125
126
+ * @throws InvalidStateException when token can't be parsed
127
128
+ * @return User $user
129
+ */
130
+ public function userByIdentityToken(string $token): SocialiteUser
131
+ {
132
+ $array = $this->getUserByToken($token);
133
+
134
+ return $this->mapUserToObject($array);
135
+ }
136
137
/**
138
* Verify Apple jwt.
139
*
0 commit comments