huixisheng / huixisheng.github.com

前端开发者说,记录前端的故事
http://huixisheng.github.io/
12 stars 3 forks source link

小程序登录 #26

Open huixisheng opened 5 years ago

huixisheng commented 5 years ago

相关介绍文章

微信小程序授权登录 https://segmentfault.com/a/1190000015725779 微信小程序授权登录最佳实践 https://juejin.im/post/5b549536e51d451a244bd863 (4)获取用户信息 https://developers.weixin.qq.com/community/develop/doc/000c2424654c40bd9c960e71e5b009 微信小程序之登录态的探索 https://segmentfault.com/a/1190000017042906

weRequest https://github.com/IvinWu/weRequest https://www.npmjs.com/package/weapp-session

相关文档

小程序 · 小故事 https://developers.weixin.qq.com/community/develop/list/512 wx.getUserInfo https://developers.weixin.qq.com/miniprogram/dev/api/wx.getUserInfo.html UnionID 机制说明 https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/union-id.html 小程序登录 https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/login.html

目前微信的session_key 有效期是三天,所以建议开发者设置的登录态有效期要小于这个值。

huixisheng commented 5 years ago

image https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/signature.html

huixisheng commented 5 years ago

微信小程序性能优化——checkSession https://segmentfault.com/a/1190000009658302 checkSession过期问题 https://developers.weixin.qq.com/community/develop/doc/000486f46701f07615c71185f5a400?highLine=checkSession

huixisheng commented 5 years ago

openid: 用户唯一标识 session_key: 会话密钥 unionid: 同一个微信开放平台下的用户唯一标识