Open selcukgoktas opened 7 months ago
hey @selcukgoktas, what do you mean log in to salesforce? can you give me some more details on this? Like, you're logging in to google and salesforce?
1- I'll login with google
google return url something like that.
2 - I login with salesforce
and after login url redirect http://localhost:8501/?code=aPrxVFXz_swY7sg%3D%3D&state=production
something like that.
Because st-paywall try to read code from url it get some error like screen and logout button will disappeared.
I add a new st.button and keep google state in localstorage and after salesforce login I keep this data on session state and add localstorage google data to session state.
This way I can get both google , stripe subscription and salesforce api details and use them.
for log out st.button will handle this. currently.
I'm using this to clear states and local storage. then It will make me log out.
When I login + subscribe = > logout button working fine.
after login + subscribe if I login to Salesforce, this will redirect url and ?code=aPrxE1W6m&state=sandbox add salesforce authentication code to the url.
if url is something like that logout button is not working.
http://localhost:8501/ ?code=aPrxE1W6m&state=sandbox