Landy
Jan 9, 2021

hmm. I'm not sure I understand your question. But I think you misunderstood the article, I'm not implementing 2FA on the client, but on the server. As I pointed out in the article:

"I want to emphasize all of this should happen on the server! Please don’t pass around secrets on the client-side. "

Secret generation, token generation and validation all occur on the server. And the client communicates via API. You don't want to risk exposing secrets on the client or give any malicious user the opportunity access those secrets through attacks.

I'm not familiar with AES keys, because I haven't personally worked with them. But, if you're validating user login with a secret and key, then that should occur on the server.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Landy
Landy

Written by Landy

Software Engineer | LinkedIn: simpslandyy | IG: miss.simpsonn. |

No responses yet

Write a response