Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
epixieme committed Aug 23, 2024
1 parent 76efdcb commit 7ea8418
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/features/auth/components/SignUpForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function SignUpForm({ isLoading, onSignUp }: Props) {

<div style={{ display: 'flex', flexDirection: 'column', justifyContent: 'center', alignItems: 'center', marginTop: 40 }}>
<CmButton2 text="Create Account" isLoading={isLoading} disabled={!formIsValid} onClick={handleSubmit} />
{devMode && <GoogleLogin onSuccess={handleGoogleSuccess} onError={handleGoogleError} />}
{devMode && <GoogleLogin onSuccess={handleGoogleSuccess} onError={() => handleGoogleError} />}
</div>
</form>
</GoogleOAuthProvider>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/UserAUnauthorizedPages/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function LoginPage() {

<LoginForm isLoading={isLoading} onLogin={handleSubmit} onForgotPasswordClick={() => setShowPasswordResetModal(true)} />

{devMode && <GoogleLogin onSuccess={handleGoogleSuccess} onError={handleGoogleError} />}
{devMode && <GoogleLogin onSuccess={handleGoogleSuccess} onError={() => handleGoogleError} />}

<RequestPasswordResetModal isOpen={showPasswordResetModal} onClose={() => setShowPasswordResetModal(false)} onSubmit={handlePasswordReset} />
</PageContent>
Expand Down
2 changes: 1 addition & 1 deletion src/shared/hooks/useApiClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function useApiClient() {
return response.data;
}
const response = await apiCall<responses.googleLogin>('post', '/auth/google', {}, { credential }, true);
const { access_token, user } = response.data;
const { access_token } = response.data;
Cookies.set('accessToken', access_token, { secure: true, sameSite: 'strict' });
console.log(response.data, 'data');
return response.data;
Expand Down

0 comments on commit 7ea8418

Please sign in to comment.