o.sv...@gmail.com
unread,May 2, 2015, 7:10:11 PM5/2/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to im...@googlegroups.com
I'm fairly new at using OAuth2, and was wondering what the best practices are for uploading images when dealing with token expiration:
- Should I upload with the current token, and then refresh the token and re-upload the image if the token has expired (seems pretty inefficient)
- Or, is there any easy way to check that the current token hasn't expired without posting all of the image data and waiting for the response?
- Otherwise, I guess I could refresh the token automatically if it's over 55 minutes old, but that seems a little messy, but would work I guess.
Does anyone know of the best methods for doing this? I'm basically trying to avoid posting the image data twice to Imgur!