# Set current User in Javascript

**URL:** <https://meta.discourse.org/t/set-current-user-in-javascript/70263>\
**Category:** Development\
**Created:** [September 18, 2017, 10:55am UTC](https://meta.discourse.org/t/set-current-user-in-javascript/70263 "2017-09-18T10:55:46Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Imperator](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/imperator/32/45089_2.png) [@Imperator](https://meta.discourse.org/u/Imperator)\
**Post date:** [September 18, 2017, 11:14am UTC](https://meta.discourse.org/t/set-current-user-in-javascript/70263/3 "2017-09-18T11:14:05Z")

</div>

You type it in the Debug Consoel right? That work for me.

But not in this Javascript example.

There i get this error.  
 ![Unbenannt](https://global.discourse-cdn.com/meta/original/3X/5/5/55a9689b26538043caff2e40d9beb8042d33d2e9.JPG)

---

_[View the full topic](https://meta.discourse.org/t/set-current-user-in-javascript/70263)._
