fix: fix google auth issue

This commit is contained in:
isra el
2023-08-05 09:40:10 +03:00
parent a8e3466ef2
commit b1d4016310
4 changed files with 59 additions and 55 deletions

View File

@@ -13,7 +13,7 @@
"@chakra-ui/react": "^1.8.7",
"@emotion/react": "^11.8.2",
"@emotion/styled": "^11.8.1",
"@react-oauth/google": "^0.9.0",
"@react-oauth/google": "^0.11.1",
"@reduxjs/toolkit": "^1.9.3",
"axios": "^0.26.1",
"framer-motion": "^6.2.8",

View File

@@ -126,7 +126,7 @@ export default function LoginPage() {
})
}}
useOneTap={!authState.user}
width='300'
width={300}
size='large'
shape='pill'
locale='en'

View File

@@ -131,7 +131,7 @@ export default function RegisterPage() {
})
}}
useOneTap={!authState.user}
width='300'
width={300}
size='large'
shape='pill'
locale='en'

108
web/pnpm-lock.yaml generated
View File

@@ -3,7 +3,7 @@ lockfileVersion: '6.0'
dependencies:
'@chakra-ui/icons':
specifier: ^1.1.7
version: 1.1.7(@chakra-ui/system@2.5.7)(react@17.0.2)
version: 1.1.7(@chakra-ui/system@2.6.0)(react@17.0.2)
'@chakra-ui/react':
specifier: ^1.8.7
version: 1.8.7(@emotion/react@11.8.2)(@emotion/styled@11.8.1)(@types/react@17.0.43)(framer-motion@6.2.8)(react-dom@17.0.2)(react@17.0.2)
@@ -14,8 +14,8 @@ dependencies:
specifier: ^11.8.1
version: 11.8.1(@emotion/react@11.8.2)(@types/react@17.0.43)(react@17.0.2)
'@react-oauth/google':
specifier: ^0.9.0
version: 0.9.0(react-dom@17.0.2)(react@17.0.2)
specifier: ^0.11.1
version: 0.11.1(react-dom@17.0.2)(react@17.0.2)
'@reduxjs/toolkit':
specifier: ^1.9.3
version: 1.9.3(react-redux@7.2.8)(react@17.0.2)
@@ -150,17 +150,17 @@ packages:
react: 17.0.2
dev: false
/@chakra-ui/anatomy@1.3.0(@chakra-ui/system@2.5.7):
/@chakra-ui/anatomy@1.3.0(@chakra-ui/system@2.6.0):
resolution: {integrity: sha512-vj/lcHkCuq/dtbl69DkNsftZTnrGEegB90ODs1B6rxw8iVMdDSYkthPPFAkqzNs4ppv1y2IBjELuVzpeta1OHA==}
peerDependencies:
'@chakra-ui/system': '>=1.0.0'
dependencies:
'@chakra-ui/system': 2.5.7(@emotion/react@11.8.2)(@emotion/styled@11.8.1)(react@17.0.2)
'@chakra-ui/theme-tools': 1.3.6(@chakra-ui/system@2.5.7)
'@chakra-ui/system': 2.6.0(@emotion/react@11.8.2)(@emotion/styled@11.8.1)(react@17.0.2)
'@chakra-ui/theme-tools': 1.3.6(@chakra-ui/system@2.6.0)
dev: false
/@chakra-ui/anatomy@2.1.2:
resolution: {integrity: sha512-pKfOS/mztc4sUXHNc8ypJ1gPWSolWT770jrgVRfolVbYlki8y5Y+As996zMF6k5lewTu6j9DQequ7Cc9a69IVQ==}
/@chakra-ui/anatomy@2.2.0:
resolution: {integrity: sha512-cD8Ms5C8+dFda0LrORMdxiFhAZwOIY1BSlCadz6/mHUIgNdQy13AHPrXiq6qWdMslqVHq10k5zH7xMPLt6kjFg==}
dev: false
/@chakra-ui/avatar@1.3.10(@chakra-ui/system@1.12.0)(react@17.0.2):
@@ -252,12 +252,12 @@ packages:
react: 17.0.2
dev: false
/@chakra-ui/color-mode@2.1.12(react@17.0.2):
resolution: {integrity: sha512-sYyfJGDoJSLYO+V2hxV9r033qhte5Nw/wAn5yRGGZnEEN1dKPEdWQ3XZvglWSDTNd0w9zkoH2w6vP4FBBYb/iw==}
/@chakra-ui/color-mode@2.2.0(react@17.0.2):
resolution: {integrity: sha512-niTEA8PALtMWRI9wJ4LL0CSBDo8NBfLNp4GD6/0hstcm3IlbBHTVKxN6HwSaoNYfphDQLxCjT4yG+0BJA5tFpg==}
peerDependencies:
react: '>=18'
dependencies:
'@chakra-ui/react-use-safe-layout-effect': 2.0.5(react@17.0.2)
'@chakra-ui/react-use-safe-layout-effect': 2.1.0(react@17.0.2)
react: 17.0.2
dev: false
@@ -363,25 +363,25 @@ packages:
react: 17.0.2
dev: false
/@chakra-ui/icon@2.0.5(@chakra-ui/system@2.5.7)(react@17.0.2):
/@chakra-ui/icon@2.0.5(@chakra-ui/system@2.6.0)(react@17.0.2):
resolution: {integrity: sha512-ZrqRvCCIxGr4qFd/r1pmtd9tobRmv8KAxV7ygFoc/t4vOSKTcVIjhE12gsI3FzgvXM15ZFVwsxa1zodwgo5neQ==}
peerDependencies:
'@chakra-ui/system': '>=1.0.0'
react: '>=16.8.6'
dependencies:
'@chakra-ui/system': 2.5.7(@emotion/react@11.8.2)(@emotion/styled@11.8.1)(react@17.0.2)
'@chakra-ui/system': 2.6.0(@emotion/react@11.8.2)(@emotion/styled@11.8.1)(react@17.0.2)
'@chakra-ui/utils': 1.10.4
react: 17.0.2
dev: false
/@chakra-ui/icons@1.1.7(@chakra-ui/system@2.5.7)(react@17.0.2):
/@chakra-ui/icons@1.1.7(@chakra-ui/system@2.6.0)(react@17.0.2):
resolution: {integrity: sha512-YIHxey/B4M2PyFASlHXtAWFyW+tsAtGAChOJ8dsM2kpu1MbVUqm/6nMI1KIFd7Te5IWuNYA75rAHBdLI0Yu61A==}
peerDependencies:
'@chakra-ui/system': '>=1.0.0'
react: '>=16.8.6'
dependencies:
'@chakra-ui/icon': 2.0.5(@chakra-ui/system@2.5.7)(react@17.0.2)
'@chakra-ui/system': 2.5.7(@emotion/react@11.8.2)(@emotion/styled@11.8.1)(react@17.0.2)
'@chakra-ui/icon': 2.0.5(@chakra-ui/system@2.6.0)(react@17.0.2)
'@chakra-ui/system': 2.6.0(@emotion/react@11.8.2)(@emotion/styled@11.8.1)(react@17.0.2)
'@types/react': 17.0.43
react: 17.0.2
dev: false
@@ -442,7 +442,7 @@ packages:
dependencies:
'@chakra-ui/react-env': 1.1.6(react@17.0.2)
'@chakra-ui/system': 1.12.0(@emotion/react@11.8.2)(@emotion/styled@11.8.1)(react@17.0.2)
'@chakra-ui/theme': 1.14.0(@chakra-ui/system@2.5.7)
'@chakra-ui/theme': 1.14.0(@chakra-ui/system@2.6.0)
'@chakra-ui/utils': 1.10.4
react: 17.0.2
dev: false
@@ -621,8 +621,8 @@ packages:
react: 17.0.2
dev: false
/@chakra-ui/react-use-safe-layout-effect@2.0.5(react@17.0.2):
resolution: {integrity: sha512-MwAQBz3VxoeFLaesaSEN87reVNVbjcQBDex2WGexAg6hUB6n4gc1OWYH/iXp4tzp4kuggBNhEHkk9BMYXWfhJQ==}
/@chakra-ui/react-use-safe-layout-effect@2.1.0(react@17.0.2):
resolution: {integrity: sha512-Knbrrx/bcPwVS1TorFdzrK/zWA8yuU/eaXDkNj24IrKoRlQrSBFarcgAEzlCHtzuhufP3OULPkELTzz91b0tCw==}
peerDependencies:
react: '>=18'
dependencies:
@@ -697,7 +697,7 @@ packages:
'@chakra-ui/tabs': 1.6.9(@chakra-ui/system@1.12.0)(react@17.0.2)
'@chakra-ui/tag': 1.2.7(@chakra-ui/system@1.12.0)(react@17.0.2)
'@chakra-ui/textarea': 1.2.10(@chakra-ui/system@1.12.0)(react@17.0.2)
'@chakra-ui/theme': 1.14.0(@chakra-ui/system@2.5.7)
'@chakra-ui/theme': 1.14.0(@chakra-ui/system@2.6.0)
'@chakra-ui/toast': 1.5.8(@chakra-ui/system@1.12.0)(framer-motion@6.2.8)(react-dom@17.0.2)(react@17.0.2)
'@chakra-ui/tooltip': 1.5.0(@chakra-ui/system@1.12.0)(framer-motion@6.2.8)(react-dom@17.0.2)(react@17.0.2)
'@chakra-ui/transition': 1.4.7(framer-motion@6.2.8)(react@17.0.2)
@@ -739,7 +739,7 @@ packages:
'@chakra-ui/hooks': 1.9.0(react@17.0.2)
'@chakra-ui/media-query': 2.0.4(@chakra-ui/system@1.12.0)(@chakra-ui/theme@1.14.0)(react@17.0.2)
'@chakra-ui/system': 1.12.0(@emotion/react@11.8.2)(@emotion/styled@11.8.1)(react@17.0.2)
'@chakra-ui/theme': 1.14.0(@chakra-ui/system@2.5.7)
'@chakra-ui/theme': 1.14.0(@chakra-ui/system@2.6.0)
'@chakra-ui/utils': 1.10.4
'@emotion/react': 11.8.2(@types/react@17.0.43)(react@17.0.2)
'@emotion/styled': 11.8.1(@emotion/react@11.8.2)(@types/react@17.0.43)(react@17.0.2)
@@ -791,8 +791,8 @@ packages:
csstype: 3.0.9
dev: false
/@chakra-ui/styled-system@2.9.0:
resolution: {integrity: sha512-rToN30eOezrTZ5qBHmWqEwsYPenHtc3WU6ODAfMUwNnmCJQiu2erRGv8JwIjmRJnKSOEnNKccI2UXe2EwI6+JA==}
/@chakra-ui/styled-system@2.9.1:
resolution: {integrity: sha512-jhYKBLxwOPi9/bQt9kqV3ELa/4CjmNNruTyXlPp5M0v0+pDMUngPp48mVLoskm9RKZGE0h1qpvj/jZ3K7c7t8w==}
dependencies:
'@chakra-ui/shared-utils': 2.0.5
csstype: 3.1.2
@@ -830,18 +830,18 @@ packages:
react-fast-compare: 3.2.0
dev: false
/@chakra-ui/system@2.5.7(@emotion/react@11.8.2)(@emotion/styled@11.8.1)(react@17.0.2):
resolution: {integrity: sha512-yB6en7YdJPxKvKY2jJROVwkBE2CLFmHS4ZDx27VdYs0Fa4kGiyDFhJAfnMtLBNDVsTy1NhUHL9aqR63u56QqFg==}
/@chakra-ui/system@2.6.0(@emotion/react@11.8.2)(@emotion/styled@11.8.1)(react@17.0.2):
resolution: {integrity: sha512-MgAFRz9V1pW0dplwWsB99hx49LCC+LsrkMala7KXcP0OvWdrkjw+iu+voBksO3626+glzgIwlZW113Eja+7JEQ==}
peerDependencies:
'@emotion/react': ^11.0.0
'@emotion/styled': ^11.0.0
react: '>=18'
dependencies:
'@chakra-ui/color-mode': 2.1.12(react@17.0.2)
'@chakra-ui/color-mode': 2.2.0(react@17.0.2)
'@chakra-ui/object-utils': 2.1.0
'@chakra-ui/react-utils': 2.0.12(react@17.0.2)
'@chakra-ui/styled-system': 2.9.0
'@chakra-ui/theme-utils': 2.0.17
'@chakra-ui/styled-system': 2.9.1
'@chakra-ui/theme-utils': 2.0.19
'@chakra-ui/utils': 2.0.15
'@emotion/react': 11.8.2(@types/react@17.0.43)(react@17.0.2)
'@emotion/styled': 11.8.1(@emotion/react@11.8.2)(@types/react@17.0.43)(react@17.0.2)
@@ -909,33 +909,33 @@ packages:
'@ctrl/tinycolor': 3.6.0
dev: false
/@chakra-ui/theme-tools@1.3.6(@chakra-ui/system@2.5.7):
/@chakra-ui/theme-tools@1.3.6(@chakra-ui/system@2.6.0):
resolution: {integrity: sha512-Wxz3XSJhPCU6OwCHEyH44EegEDQHwvlsx+KDkUDGevOjUU88YuNqOVkKtgTpgMLNQcsrYZ93oPWZUJqqCVNRew==}
peerDependencies:
'@chakra-ui/system': '>=1.0.0'
dependencies:
'@chakra-ui/system': 2.5.7(@emotion/react@11.8.2)(@emotion/styled@11.8.1)(react@17.0.2)
'@chakra-ui/system': 2.6.0(@emotion/react@11.8.2)(@emotion/styled@11.8.1)(react@17.0.2)
'@chakra-ui/utils': 1.10.4
'@ctrl/tinycolor': 3.6.0
dev: false
/@chakra-ui/theme-tools@2.0.17(@chakra-ui/styled-system@2.9.0):
resolution: {integrity: sha512-Auu38hnihlJZQcPok6itRDBbwof3TpXGYtDPnOvrq4Xp7jnab36HLt7KEXSDPXbtOk3ZqU99pvI1en5LbDrdjg==}
/@chakra-ui/theme-tools@2.1.0(@chakra-ui/styled-system@2.9.1):
resolution: {integrity: sha512-TKv4trAY8q8+DWdZrpSabTd3SZtZrnzFDwUdzhbWBhFEDEVR3fAkRTPpnPDtf1X9w1YErWn3QAcMACVFz4+vkw==}
peerDependencies:
'@chakra-ui/styled-system': '>=2.0.0'
dependencies:
'@chakra-ui/anatomy': 2.1.2
'@chakra-ui/anatomy': 2.2.0
'@chakra-ui/shared-utils': 2.0.5
'@chakra-ui/styled-system': 2.9.0
'@chakra-ui/styled-system': 2.9.1
color2k: 2.0.2
dev: false
/@chakra-ui/theme-utils@2.0.17:
resolution: {integrity: sha512-aUaVLFIU1Rs8m+5WVOUvqHKapOX8nSgUVGaeRWS4odxBM95dG4j15f4L88LEMw4D4+WWd0CSAS139OnRgj1rCw==}
/@chakra-ui/theme-utils@2.0.19:
resolution: {integrity: sha512-UQ+KvozTN86+0oA80rdQd1a++4rm4ulo+DEabkgwNpkK3yaWsucOxkDQpi2sMIMvw5X0oaWvNBZJuVyK7HdOXg==}
dependencies:
'@chakra-ui/shared-utils': 2.0.5
'@chakra-ui/styled-system': 2.9.0
'@chakra-ui/theme': 3.1.1(@chakra-ui/styled-system@2.9.0)
'@chakra-ui/styled-system': 2.9.1
'@chakra-ui/theme': 3.2.0(@chakra-ui/styled-system@2.9.1)
lodash.mergewith: 4.6.2
dev: false
@@ -944,32 +944,32 @@ packages:
peerDependencies:
'@chakra-ui/system': '>=1.0.0'
dependencies:
'@chakra-ui/anatomy': 1.3.0(@chakra-ui/system@2.5.7)
'@chakra-ui/anatomy': 1.3.0(@chakra-ui/system@2.6.0)
'@chakra-ui/system': 1.12.0(@emotion/react@11.8.2)(@emotion/styled@11.8.1)(react@17.0.2)
'@chakra-ui/theme-tools': 1.3.6(@chakra-ui/system@2.5.7)
'@chakra-ui/theme-tools': 1.3.6(@chakra-ui/system@2.6.0)
'@chakra-ui/utils': 1.10.4
dev: false
/@chakra-ui/theme@1.14.0(@chakra-ui/system@2.5.7):
/@chakra-ui/theme@1.14.0(@chakra-ui/system@2.6.0):
resolution: {integrity: sha512-zKy/8JSbiCP0QeBsLzdub7aBnfX2k0qp5vD+RA+mxPEiykEvPGg+TwryxRM5KMZK1Zdgg95aH+9mwiGe9tJt3A==}
peerDependencies:
'@chakra-ui/system': '>=1.0.0'
dependencies:
'@chakra-ui/anatomy': 1.3.0(@chakra-ui/system@2.5.7)
'@chakra-ui/system': 2.5.7(@emotion/react@11.8.2)(@emotion/styled@11.8.1)(react@17.0.2)
'@chakra-ui/theme-tools': 1.3.6(@chakra-ui/system@2.5.7)
'@chakra-ui/anatomy': 1.3.0(@chakra-ui/system@2.6.0)
'@chakra-ui/system': 2.6.0(@emotion/react@11.8.2)(@emotion/styled@11.8.1)(react@17.0.2)
'@chakra-ui/theme-tools': 1.3.6(@chakra-ui/system@2.6.0)
'@chakra-ui/utils': 1.10.4
dev: false
/@chakra-ui/theme@3.1.1(@chakra-ui/styled-system@2.9.0):
resolution: {integrity: sha512-VHcG0CPLd9tgvWnajpAGqrAYhx4HwgfK0E9VOrdwa/3bN+AgY/0EAAXzfe0Q0W2MBWzSgaYqZcQ5cDRpYbiYPA==}
/@chakra-ui/theme@3.2.0(@chakra-ui/styled-system@2.9.1):
resolution: {integrity: sha512-q9mppdkhmaBnvOT8REr/lVNNBX/prwm50EzObJ+r+ErVhNQDc55gCFmtr+It3xlcCqmOteG6XUdwRCJz8qzOqg==}
peerDependencies:
'@chakra-ui/styled-system': '>=2.8.0'
dependencies:
'@chakra-ui/anatomy': 2.1.2
'@chakra-ui/anatomy': 2.2.0
'@chakra-ui/shared-utils': 2.0.5
'@chakra-ui/styled-system': 2.9.0
'@chakra-ui/theme-tools': 2.0.17(@chakra-ui/styled-system@2.9.0)
'@chakra-ui/styled-system': 2.9.1
'@chakra-ui/theme-tools': 2.1.0(@chakra-ui/styled-system@2.9.1)
dev: false
/@chakra-ui/toast@1.5.8(@chakra-ui/system@1.12.0)(framer-motion@6.2.8)(react-dom@17.0.2)(react@17.0.2):
@@ -1388,8 +1388,8 @@ packages:
tslib: 2.5.0
dev: false
/@react-oauth/google@0.9.0(react-dom@17.0.2)(react@17.0.2):
resolution: {integrity: sha512-iq9I6A4uwZezU/BixqLM6UET6an559ufC4Nh0lEIeIaKC3TJRvcPNWCjjHny56yAhgdT6ivUicLIvEoiSMjnmg==}
/@react-oauth/google@0.11.1(react-dom@17.0.2)(react@17.0.2):
resolution: {integrity: sha512-tywZisXbsdaRBVbEu0VX6dRbOSL2I6DgY97woq5NMOOOz+xtDsm418vqq+Vx10KMtra3kdHMRMf0hXLWrk2RMg==}
peerDependencies:
react: '>=16.8.0'
react-dom: '>=16.8.0'
@@ -1441,13 +1441,17 @@ packages:
/@types/lodash.mergewith@4.6.7:
resolution: {integrity: sha512-3m+lkO5CLRRYU0fhGRp7zbsGi6+BZj0uTVSwvcKU+nSlhjA9/QRNfuSGnD2mX6hQA7ZbmcCkzk5h4ZYGOtk14A==}
dependencies:
'@types/lodash': 4.14.194
'@types/lodash': 4.14.196
dev: false
/@types/lodash@4.14.194:
resolution: {integrity: sha512-r22s9tAS7imvBt2lyHC9B8AGwWnXaYb1tY09oyLkXDs4vArpYJzw09nj8MLx5VfciBPGIb+ZwG0ssYnEPJxn/g==}
dev: false
/@types/lodash@4.14.196:
resolution: {integrity: sha512-22y3o88f4a94mKljsZcanlNWPzO0uBsBdzLAngf2tp533LzZcQzb6+eZPJ+vCTt+bqF2XnvT9gejTLsAcJAJyQ==}
dev: false
/@types/node@17.0.23:
resolution: {integrity: sha512-UxDxWn7dl97rKVeVS61vErvw086aCYhDLyvRQZ5Rk65rZKepaFdm53GeqXaKBuOhED4e9uWq34IC3TdSdJJ2Gw==}
dev: true