code.pyret.org icon indicating copy to clipboard operation
code.pyret.org copied to clipboard

Expired Google credentials sometimes don't auto-update

Open jpolitz opened this issue 11 years ago • 2 comments

When we get a 401 response from GDrive, we should be re-authenticating silently in the background. If this fails, we need to alert the user somehow, because it causes weird behavior in saving (messages like "program saved as undefined", which isn't true).

Need to check:

  1. If reauth() is actually just not working, and fixing that function would help
  2. How we can gracefully handle failure, and if we'll need to get the user to click something so we can reopen a popup to authenticate

This is a little hard to test on expiration, because it takes an hour for credentials to expire!

We probably want an option to save the program to localStorage so a user can refresh without losing valuable state.

jpolitz avatar May 16 '14 20:05 jpolitz

@jpolitz Is this still an issue?

schanzer avatar Mar 17 '20 02:03 schanzer

@jpolitz OK to close?

schanzer avatar Jan 11 '24 16:01 schanzer