Closed matvejs16 closed 6 months ago
finalizeTwoFactor does in fact accept a Buffer in addition to a string. Buffer.from is failing because you didn't specify an encoding, which defaults to 'utf8'. You likely want to specify 'base64' as your encoding.
String type is correct instead of Buffer
Not working example:
Correct example: