# How to generate the MFA OTP in postman?

**URL:** <https://community.postman.com/t/how-to-generate-the-mfa-otp-in-postman/54634>\
**Category:** Help Hub\
**Tags:** authentication, npm\
**Created:** [November 15, 2023, 11:51am UTC](https://community.postman.com/t/how-to-generate-the-mfa-otp-in-postman/54634 "2023-11-15T11:51:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aswinchembath1](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@aswinchembath1](https://community.postman.com/u/aswinchembath1)\
**Post date:** [November 15, 2023, 11:51am UTC](https://community.postman.com/t/how-to-generate-the-mfa-otp-in-postman/54634/1 "2023-11-15T11:51:08Z")

</div>

How to use the Npm pacakges in postman ? , I want to incorporate the MFA token generation inside the Postman script. is that possible?

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 15, 2023, 11:56am UTC](https://community.postman.com/t/how-to-generate-the-mfa-otp-in-postman/54634/2 "2023-11-15T11:56:18Z")

</div>

Hey @aswinchembath1 👋

Didn’t @michaelderekjones already provide a response to this question?

> [@Integrating NPM package "Authenticator" with postman for MFA](https://community.postman.com/t/integrating-npm-package-authenticator-with-postman-for-mfa/54558/2):
>
> You can’t utilise node libraries in Postman web or the desktop client. You are limited to the libraries\modules built into the sandbox. You can however use Newman as an node.JS module. [newman - npm (npmjs.com)](https://www.npmjs.com/package/newman) Or just turn off MFA on the account you use for testing, which is an common approach for this problem in automation as you aren’t usually testing the MFA element, but the application you hit after this.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 15, 2023, 11:56am UTC](https://community.postman.com/t/how-to-generate-the-mfa-otp-in-postman/54634/3 "2023-12-15T11:56:28Z")

</div>

Closed on December 15, 2023, 11:56am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
