Query for username in Salesforce iOS SDK

前端 未结 5 1240
生来不讨喜
生来不讨喜 2021-01-22 16:27

I have an iOS app using the latest Salesforce iOS SDK. It authenticates users through a webview using oAuth2.0 on the Salesforce site so I do not capture the username in my app

5条回答
  •  感情败类
    2021-01-22 16:51

    username of current user is stored in SFIdentityData object

    #import "SFIdentityData.h"
    
    NSString *userName = [SFAccountManager sharedInstance].idData.username;
    

提交回复
热议问题