Skip to content

Subject:How to handle token expired error globally with AFNetworking or YTKNetwork? #31

@xiaolouxinyue

Description

@xiaolouxinyue

RT,
项目中总有些请求需要附带认证header。当token过期后,可以通过refreshtoken刷新获得新的token;当refreshtoken过期后,则需要强制退出重新登录。针对这个业务逻辑,在使用离散型的网络层设计中,如何更优雅的处理呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions