* Retrieves the shared secret to the current user logged in
* @return HTTP response with the OTP URI encoded in QRCode. For example: otpauth://totp/alice@google.com?secret=JBSWY3DPEHPK3PXP
*/
public Response getSecret() {
Totp totp = new Totp(secret.get());
AeroGearUser userInfo = new AeroGearUser();
userInfo.setUri(totp.uri(loggedUser.get()));
return Response.ok(userInfo).build();
}