simsicon / weibo_2

A ruby gem for sina weibo oauth2 api, with examples, and it actually works.
MIT License
194 stars 86 forks source link

get_token_from_hash的问题 #6

Closed zires closed 11 years ago

zires commented 11 years ago

新浪那边传来的是"expires"=>142582,应该不需要单独取出expires_at,直接丢给OAuth2::AccessToken处理好了

另外,authorized?方法不单单要判断@access_token是否存在,还要判断@access_token是否有效

simsicon commented 11 years ago

Cool, I think it's pretty straightforward. Merged.