remotestorage.js icon indicating copy to clipboard operation
remotestorage.js copied to clipboard

GD backend automatically starts authorization proccess when the token expires

Open Ragnis opened this issue 10 years ago • 5 comments

This causes the user to be unexpectedly redirected to Google Drive's authorization page. Instead it should simply return status 401 which will cause RemoteStorage.Unauthorized to be thrown.

Ragnis avatar Jun 06 '14 08:06 Ragnis

Actually, I think this is good behaviour and we might want to discuss doing this for remoteStorage, too, and not remove it from where it already works. Fargo.io does this as well for example, and it's a very nice experience not having to worry about it as a user, but just accepting the dialog whenever the app needs access.

raucao avatar Jun 09 '14 11:06 raucao

@Ragnis What do you think, should we still change this to throw unauthorized?

raucao avatar Mar 19 '16 21:03 raucao

Also linking #735 as this would then have to use the new event instead of throwing an error.

raucao avatar Mar 19 '16 21:03 raucao

@Ragnis What do you think?

raucao avatar May 20 '16 08:05 raucao

I think it should emit the event mentioned in #735 so that the situation can be handled as appropriate.

Ragnis avatar May 22 '16 15:05 Ragnis