package
0.0.0-20220610093703-3be1cb674a51
Repository: https://github.com/ruang-guru/playground.git
Documentation: pkg.go.dev

# README

#Two Factor Authentication

##Requirement

  1. Google Authenticator or other MFA [here]

##Step

  1. Register MFA manual di Aplikasi Google Authenticator menggunakan secret yang sama dengan di function VerifyOTP
    contoh : 2MXGP5X3FVUEK6W4UB2PPODSP2GKYWUT
  2. Login ke dalam service dengan endpoint /signin (Tidak perlu akun karna sudah dimock)
  3. Gunakan return dari endpoint sebelumnya sebagai header berikut\ Authorization : Bearer <token>'
  4. Buka aplikasi MFA, kemudian masukan token ke endpoint /verify-otp

# Functions

No description provided by the author
No description provided by the author
mock the user signin.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author