Gray screen when running `puter.ui.authenticateWithPuter()`
repro website: https://rey-authwithputer.puter.site
how to repro
- open the link in incognito
- click continue
- stuck in gray screen
the complete code for this page
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
// Presents a dialog to the user to authenticate with their Puter account.
puter.ui.authenticateWithPuter().then((user) => {
console.log(user)
});
</script>
</body>
</html>
if it was working, i would expect it to console log my user data, but i couldn't get to the username and password input
another data point: actually if i try it on non-incognito, where i already have puter logged in at puter.com, it just works plus it doesn't prompt me to input username or password any more
src="https://js.puter.com/v2/
Is it down currently?
this Puter auth flow will not work in Incognito Mode on most browsers (especially Chrome), because it depends on third-party cookies, localStorage, and popup/redirect authentication, all of which are heavily restricted in Incognito.In Incognito mode, Chrome blocks:
Third-party cookies (default) LocalStorage for third-party iframes IndexedDB in cross-site contexts Some popup redirects depending on strictness
solution could be : Allow third-party cookies in Incognito
This issues has been resolved. We have a bug in our promise handling, which was fixed a while ago. Sorry for the delay, everybody. We're committed to being much faster to respond this year! 🫡