coogger / steemconnect_auth

A django application to login with steemconnect.
MIT License
0 stars 1 forks source link

Need to check for token expiry #2

Open mtastafford opened 6 years ago

mtastafford commented 6 years ago

Need to check for expired token to validate refresh token request.

Add expiry_date datetime field to model?

7-days (606024*7 seconds) after access_token issue...

hakancelikdev commented 6 years ago

Good issue, I will try to add it tomorrow, but until you can use this code for update and get access_token

from steemconnect_auth.models import SteemConnectUser

steem_connect_user = SteemConnectUser.objects.filter(user="username")
new_access_token = steem_connect_user.update_access_token("your app secret")