signinwith 1.1.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
- package/react.jsx +2 -2
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const verifySigninGoogle = async (config, verificationData) => {
|
|
2
|
-
const res = await fetch(`https://www.googleapis.com/oauth2/v3/tokeninfo?id_token=${verificationData.
|
|
2
|
+
const res = await fetch(`https://www.googleapis.com/oauth2/v3/tokeninfo?id_token=${verificationData.code}`);
|
|
3
3
|
const payload = await res.json();
|
|
4
|
-
if (payload.aud !== config.clientId) return { success: false, error: '
|
|
4
|
+
if (payload.aud !== config.clientId) return { success: false, error: 'Mismatch in clientID and "aud" value.' };
|
|
5
5
|
return payload.email ? { success: true, email: payload.email } : { success: false, error: 'Email not found' };
|
|
6
6
|
};
|
|
7
7
|
|
package/package.json
CHANGED
package/react.jsx
CHANGED
|
@@ -20,8 +20,8 @@ const DiscordIcon = () => (
|
|
|
20
20
|
const GithubIcon = () => (
|
|
21
21
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
22
22
|
<path
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
fillRule="evenodd"
|
|
24
|
+
clipRule="evenodd"
|
|
25
25
|
d="M12 0C5.37 0 0 5.42 0 12.108c0 5.354 3.438 9.892 8.205 11.496.6.115.82-.264.82-.585 0-.288-.01-1.049-.016-2.06-3.338.737-4.042-1.642-4.042-1.642-.547-1.412-1.336-1.788-1.336-1.788-1.09-.758.083-.743.083-.743 1.205.086 1.84 1.255 1.84 1.255 1.07 1.864 2.807 1.326 3.492 1.015.108-.793.42-1.326.763-1.63-2.665-.31-5.466-1.366-5.466-6.075 0-1.342.465-2.44 1.232-3.3-.124-.311-.535-1.565.118-3.263 0 0 1.007-.33 3.3 1.26a11.23 11.23 0 0 1 3.004-.41c1.02.004 2.047.14 3.004.41 2.29-1.59 3.296-1.26 3.296-1.26.655 1.698.244 2.952.12 3.263.77.86 1.23 1.958 1.23 3.3 0 4.724-2.807 5.76-5.48 6.064.43.379.823 1.126.823 2.27 0 1.64-.015 2.96-.015 3.363 0 .324.216.704.826.583C20.565 22 24 17.46 24 12.108 24 5.42 18.627 0 12 0Z"
|
|
26
26
|
fill="#FFFFFF"
|
|
27
27
|
/>
|