You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Session interface in packages/types/src/types/session/session.ts does not contain the optional extraData property of type object. extraData should contain at least impersonatorUserId (optional).
To Reproduce
In the IDE the return value for findSessionByAccessToken(...) does not contain the above mentioned properties, but when you:
Login as a user
Start impersonating any other user
Use that authToken to await accountsServer.findSessionByAccessToken(authToken);
Check the result of the promise - it contains extraData: { impersonatorUserId: 'someId123321' }, as well.
Expected behavior
IDE should show that Session may also contain optional extraData (and within optional impersonatorUserId).
Bug report
Describe the bug
The
Session
interface inpackages/types/src/types/session/session.ts
does not contain the optionalextraData
property of type object.extraData
should contain at leastimpersonatorUserId
(optional).To Reproduce
In the IDE the return value for
findSessionByAccessToken(...)
does not contain the above mentioned properties, but when you:authToken
toawait accountsServer.findSessionByAccessToken(authToken);
extraData: { impersonatorUserId: 'someId123321' },
as well.Expected behavior
IDE should show that
Session
may also contain optionalextraData
(and within optionalimpersonatorUserId
).Additional context
Discussion
The text was updated successfully, but these errors were encountered: