/rest/api/3/myself giving wrong result in Forge App

Hello,
in my Custom UI App, I have a resolver method which does

const myself = await (await api.asUser().requestJira(route/rest/api/3/myself)).json()
console.log(‘MYSELF’, myself);

trying the endpoint on my browser, I get the right result:

However, the console.log in the resolver is spitting out the wrong user (!)

What kind of sorcery is happening over here?

Hi Abdullah

Is this the only log you have? Are you the only developer on this particular site?
It may have been another user invoking the Forge app on accident.

If you’re certain the above isn’t the case then could you mention the steps to reproduce the problem

Hello @JoshuaHwang

I am the sole developer of this app, and I am a 100% sure that this is the log.

I discovered another similar bug.

const check = ‘ADMINISTER,ADMINISTER_PROJECTS’
const permissions = await (await api.asUser().requestJira(route/rest/api/3/mypermissions?permissions=${check})).json()

Testing this endpoint on my browser, I get the right result:

However, the resolver returns this:
image

It returns true for the Permissions, but they are clearly false.