Skip to content

Instantly share code, notes, and snippets.

@hyjk2000
Created August 18, 2016 05:55
Show Gist options
  • Select an option

  • Save hyjk2000/72030e7fe6aca66c713399540bb5407e to your computer and use it in GitHub Desktop.

Select an option

Save hyjk2000/72030e7fe6aca66c713399540bb5407e to your computer and use it in GitHub Desktop.
auth_hash example of omniauth-wechat-oauth2
{
"credentials": {
"expires": true,
"expires_at": 1436019773,
"refresh_token": "[hidden]",
"token": "[hidden]"
},
"extra": {
"raw_info": {
"city": "Xi'an",
"country": "CN",
"headimgurl": "http://wx.qlogo.cn/mmopen/[hidden]/0",
"language": "zh_CN",
"nickname": "[hidden]",
"openid": "[hidden]",
"privilege": [],
"province": "Shaanxi",
"sex": 1
}
},
"info": {
"city": "Xi'an",
"country": "CN",
"headimgurl": "http://wx.qlogo.cn/mmopen/[hidden]/0",
"name": "[hidden]",
"nickname": "[hidden]",
"province": "Shaanxi",
"sex": 1
},
"provider": "wechat",
"uid": "[hidden]"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment