functions-samples icon indicating copy to clipboard operation
functions-samples copied to clipboard

The insta-auth example does not seem to work anymore.

Open Qzingo opened this issue 5 years ago • 3 comments

How to reproduce these conditions

popup.html does not close and does not redirect

Steps to set up and reproduce: Open the demo at https://instagram-auth.appspot.com/ Click on SIGN IN WITH INSTAGRAM button which will led to /popup.html Enter your instagram credentials. Gets stuck at "Waiting for instagram-auth.appspot.com"

Expected behavior

Popup should close and the example should show logged in user's details.

Actual behavior

Popup never closes. Tested in Safari and Chrome.

Qzingo avatar Apr 29 '19 07:04 Qzingo

https://firebase.google.com/docs/storage/extend-with-functions

iekuzmuk avatar May 05 '19 19:05 iekuzmuk

yep, it not working anymore, cookies cannot set right.

info: Received verification state: undefined
Received state: df60bf26f8dad8b381cc355b51fcc3825a15fee7
error: (node:48417) UnhandledPromiseRejectionWarning: Error: State cookie not set or expired. Maybe you took too long to authorize. Please try again.

and @iekuzmuk , if you think your link can solute this issue, please say something.

geminiyellow avatar May 10 '19 08:05 geminiyellow

Do not use safe cookes for localhost. Or then its a safari problem with Cloud functions

jimmykane avatar Jun 03 '19 20:06 jimmykane