关于使用UID登录的问题

App开发相关产品技术讨论,包括OEM App、App SDK等话题


Post Reply
涂鸦柒松
Posts: 8

  • 用户 UID 登录采用注册和登录为一体的接口,适用于已经拥有账号体系的场景。UID 是在您的用户系统中维护的用户唯一标识。

Code: Select all

- (void)loginOrRegisterWithCountryCode:(NSString *)countryCode
                                   uid:(NSString *)uid
                              password:(NSString *)password
                            createHome:(BOOL)createHome
                               success:(nullable ThingSuccessID)success
                               failure:(nullable ThingFailureError)failure;
  • UID登录不支持修改密码,只有邮箱登录、手机号码登录可以重置密码。

  • 目前更推荐接入邮箱登录、手机号码登录或其他登录方式,接入方式请参考App SDK开发指南,UID登录只作维护使用,暂无计划新增功能。


Tags:
OS App - 尼奥
Posts: 11

Re: 关于使用UID登录的问题

也可以关注下这个方法:

  • (void)loginByAuth2WithType:(ThingSmartUserLoginType)type
    countryCode:(NSString *)countryCode
    accessToken:(NSString *)accessToken
    extraInfo:(NSDictionary *)extraInfo
    success:(nullable ThingSuccessHandler)success
    failure:(nullable ThingFailureError)failure;

ThingSmartUserLoginTypeJWT 类型能够支持更安全的授权登录

Post Reply