Question
How can I access the current AEM session expiry time?
Hi All,
I'm currently working on a use case where I need to retrieve the token expiry time for the current user in AEM. Based on my understanding, this information is stored at the path: /home/users//.tokens/ (specifically, the rep:token.exp property).
This works as expected in the Author and RDE environments. However, on the AEM as a Cloud Publisher instance(dev/stage/prod), I don’t see this node at all—it appears that the .tokens node is either hidden or not accessible in this environment.
Has anyone come across this issue or identified an alternative approach to retrieve the token expiry (rep:token.exp) or determine the current user session expiry on the Publisher?
Any insights or suggestions would be greatly appreciated.
I'm currently working on a use case where I need to retrieve the token expiry time for the current user in AEM. Based on my understanding, this information is stored at the path: /home/users//.tokens/ (specifically, the rep:token.exp property).
This works as expected in the Author and RDE environments. However, on the AEM as a Cloud Publisher instance(dev/stage/prod), I don’t see this node at all—it appears that the .tokens node is either hidden or not accessible in this environment.
Has anyone come across this issue or identified an alternative approach to retrieve the token expiry (rep:token.exp) or determine the current user session expiry on the Publisher?
Any insights or suggestions would be greatly appreciated.