Skip to content

Fetch网络请求中考虑增加基于jwt的api认证以及无感知自动重新刷新token的功能 #92

@lisenz

Description

@lisenz

Description

目前我们小程序项目对于业务API的请求是基于JWT认证的流程,在请求业务API的时候,会先到授权认证中心获取token,之后携带token去请求API,在这个过程中,当token过期时,需要无感知自动刷新获取一个新的token,并重新去请求之前因token过期导致请求失败的业务API,即需要一个合理的重试机制。

希望可以在Fetch这里增加以上需求功能。

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions