Skip to content

Commit

Permalink
Merge pull request #3487 from blockchain/fix/2fa-session
Browse files Browse the repository at this point in the history
fix(2fa-login): prioritize email session token
  • Loading branch information
schnogz authored Aug 18, 2021
2 parents 800bce0 + 241ed3e commit 5d88689
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { curry, defaultTo, path } from 'ramda'
export const getSession = curry((state, guid, email) => {
const guidSession = path(['session', guid], state)
const emailSession = path(['session', email], state)
return defaultTo(emailSession)(guidSession)
return defaultTo(guidSession)(emailSession)
})

0 comments on commit 5d88689

Please sign in to comment.