Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Oct 16, 2023
1 parent 99a8a0e commit 266731e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/Oauth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export function Login() {

const connectingWallet = useRef(false)

window.csrf = authFormConfig?.ui?.nodes?.find(e => e.attributes.name === 'csrf_token')?.attributes?.value ?? ''
const signInWithEth = useCallback(async () => {
try {
const siweConfig = authFormConfig?.oauth_client?.metadata?.siwe_config
Expand Down Expand Up @@ -118,7 +117,7 @@ export function Login() {

const { client_id } = loginFlow.oauth_client
const loginMethods = getSupportLoginMethods(loginFlow)

window.csrf = loginFlow?.ui?.nodes?.find(e => e.attributes.name === 'csrf_token')?.attributes?.value ?? '' // todo
let autoLoginMethod: LoginMethod | undefined
const isIncludeGoogle = loginMethods.includes(LoginMethod.GOOGLE)
const totalMethod = loginMethods.length
Expand Down

0 comments on commit 266731e

Please sign in to comment.