For example, getAccessTokenPayloadSecurely calls doesSessionExist internally. So if someone overrides doesSessionExist and in that calls getAccessTokenPayloadSecurely, it leads to an infinite loop. This can be solved by providing appropriate user context values and breaking the infinite recursion loop.
However, there is a case where refreshing a session calls recipeImpl.doesSessionExist which then if it calls getAccessTokenPayloadSecurely, which can also refresh the session. This causes an infinite recursive loop where the user context is no longer passed and cannot be used to break the loop.
For example,
getAccessTokenPayloadSecurely
callsdoesSessionExist
internally. So if someone overridesdoesSessionExist
and in that callsgetAccessTokenPayloadSecurely
, it leads to an infinite loop. This can be solved by providing appropriate user context values and breaking the infinite recursion loop.However, there is a case where refreshing a session calls
recipeImpl.doesSessionExist
which then if it callsgetAccessTokenPayloadSecurely
, which can also refresh the session. This causes an infinite recursive loop where the user context is no longer passed and cannot be used to break the loop.