Invalid state when the main application with auth0 is embedded into another application through iframe

Hi, i am using auth0 with my laravel app i did successfully configured it on my standalone app and its working fine on server also. But when i embed my laravel app into a saas product then it break downs . The login pop is working fine but after logging the server responds withh 500 error and after debugging i found server is logging error i.e invalid state. i am attaching a screenshot of the server log