Where is the currentUser service located?

This might be a silly question, but could someone point me in the right direction? I can’t seem to find the currentUser service file in the Discourse repo. There simply isn’t a current-user.js file in the app/services directory. And yet, @service currentUser exists. Is this part of Ember core (I doubt it)? Or some Ember extension/additional NPM [1] package?

Thanks.


  1. Technically, pnpm ↩︎

It’s here - including a comment why it’s not a “real” service.

6 Likes

Thanks! I wouldn’t have thought to look there.

2 Likes