The documentation is not clear as it dont show how 2 different app keys can work simultaneously with their own sessions as at a time only one token can be active of a session for a user. If you call generate_session() from app2 then app1 session and…