Vue JS 2fa implementation

Hello I want to ask how to implement 2fa in a Vue JS. N.B. a third party service is the 2fa server.