Giter Club home page Giter Club logo

Comments (6)

LipYoung avatar LipYoung commented on August 17, 2024

移动端有一个需求 当用户被挤下线时,需要显示具体的原因.例如"多设备登陆",""验证信息过期"等
目前服务端不能返回"多设备登陆"这个错误码

from plus.

medz avatar medz commented on August 17, 2024

@LipYoung 周末深入研究了 oauth 后,发现一个问题,我们的 授权访问令牌 (access token)是有授权时间的,即使我们设定是永不过期,所以,在授权有效期内,授权访问令牌 失效,代表从其他地方登录了,只有过了有效期才失效为 令牌失效,客户端均以这一原则进行提示。

from plus.

LipYoung avatar LipYoung commented on August 17, 2024

"多设备登陆" 咋办 @medz

from plus.

medz avatar medz commented on August 17, 2024

多设备登录不是你们处理的,你们只要按照这一原则处理即可,多设备的情况,我们后端不会下线其他设备的授权访问令牌。

from plus.

medz avatar medz commented on August 17, 2024

有时候问题就是被想的复杂了。而不是问题本身很复杂。

from plus.

LipYoung avatar LipYoung commented on August 17, 2024

等回头修改这一块的时候按照你说的来。目前讨论就这样结束吧。

from plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.