Skip to content

Commit

Permalink
off auto
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Oct 17, 2023
1 parent 833eebf commit 8f2cd7b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/Oauth/AuthForm/EmailLoginForm.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import KyberOauth2, { LoginMethod } from '@kybernetwork/oauth2'
import KyberOauth2 from '@kybernetwork/oauth2'
import { Trans, t } from '@lingui/macro'
import { useState } from 'react'
import styled from 'styled-components'
Expand All @@ -8,7 +8,6 @@ import Column from 'components/Column'
import useParsedQueryString from 'hooks/useParsedQueryString'
import { useValidateEmail } from 'pages/NotificationCenter/NotificationPreference'
import InputEmailWithVerification from 'pages/NotificationCenter/NotificationPreference/InputEmail'
import useAutoSignIn from 'pages/Oauth/AuthForm/useAutoSignIn'
import { FlowStatus } from 'pages/Oauth/Login'
import { isEmailValid, queryStringToObject } from 'utils/string'

Expand All @@ -33,7 +32,7 @@ const EmailLoginForm = ({ flowStatus }: { flowStatus: FlowStatus }) => {
setIsShowVerify(true)
}

useAutoSignIn({ method: LoginMethod.EMAIL, onClick: onVerifyEmail, flowStatus })
// useAutoSignIn({ method: LoginMethod.EMAIL, onClick: onVerifyEmail, flowStatus })

const onVerifyCode = async (data: { code: string; email: string }) => {
const resp = await KyberOauth2.oauthUi.loginEmail(data)
Expand Down

0 comments on commit 8f2cd7b

Please sign in to comment.