# Adding remember browser to custom Guardian multifactor widget

**URL:** <https://community.auth0.com/t/adding-remember-browser-to-custom-guardian-multifactor-widget/6798>\
**Category:** Get Help\
**Tags:** guardian, custom, mfa-sms\
**Created:** [May 30, 2017, 8:05pm UTC](https://community.auth0.com/t/adding-remember-browser-to-custom-guardian-multifactor-widget/6798 "2017-05-30T20:05:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![taavi.tanavsuu](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@taavi.tanavsuu](https://community.auth0.com/u/taavi.tanavsuu)\
**Post date:** [May 30, 2017, 8:05pm UTC](https://community.auth0.com/t/adding-remember-browser-to-custom-guardian-multifactor-widget/6798/1 "2017-05-30T20:05:22Z")

</div>

I have a custom Guardian multifactor widget that asks for code from SMS when users log in. It is using the auth0-guardian.js library, as in the sample here:

> <https://github.com/auth0/auth0-guardian.js/blob/master/example/basic_widget.html>

Now I’d like to add the _remember me on this browser_ option, just like the original Guardian widget has. However, there seems to be no support for that in the auth0-guardian.js library. Also, I cannot find any hints in documentations, and I cannot quite see how is this implemented in the original widget in mfa-widget-1.3.0.min.js, as only the minified version of it seems to be available in public.

I can only see that at some point a POST request is made to `https://my-tenant.auth0.com/mf` with `rememberBrowser: true` parameter.

Could someone give any further hints on how to do this properly?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [May 31, 2017, 3:55pm UTC](https://community.auth0.com/t/adding-remember-browser-to-custom-guardian-multifactor-widget/6798/2 "2017-05-31T15:55:20Z")

</div>

Based on looking at the [library repository](https://github.com/auth0/auth0-guardian.js/#authentication) and the information you provided it seems that you would need to do something like:

```
auth0GuardianJS.formPostHelper('{{ postActionURL }}', {
  signature: payload.signature,
  rememberBrowser: /true_or_false_depending_on_user_choice/
});

```

---

<div class="post-metadata">

**Author:** ![taavi.tanavsuu](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@taavi.tanavsuu](https://community.auth0.com/u/taavi.tanavsuu)\
**Post date:** [May 31, 2017, 4:01pm UTC](https://community.auth0.com/t/adding-remember-browser-to-custom-guardian-multifactor-widget/6798/3 "2017-05-31T16:01:30Z")

</div>

Yes, that seems to work.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/adding-remember-browser-to-custom-guardian-multifactor-widget/6798/4 "2018-03-02T05:54:12Z")

</div>


