# Import the User class instead of using User

**URL:** <https://meta.discourse.org/t/import-the-user-class-instead-of-using-user/139586>\
**Category:** Development\
**Created:** [January 23, 2020, 10:52pm UTC](https://meta.discourse.org/t/import-the-user-class-instead-of-using-user/139586 "2020-01-23T22:52:39Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [October 1, 2020, 9:43am UTC](https://meta.discourse.org/t/import-the-user-class-instead-of-using-user/139586/9 "2020-10-01T09:43:11Z")

</div>

As a theme developer, if you’re using more than just `User.current()`, then the replacement is this:

```plaintext
const User = require('discourse/model/user').default;

```

---

_[View the full topic](https://meta.discourse.org/t/import-the-user-class-instead-of-using-user/139586)._
