You need to sign in to do that
Don't have an account?
Kamal Agarwal 10
How to read refresh token through salesforce mobile native iOS SDK
I have integrated salesforce mobile native iOS SDK in my project which is in swift. Now after user login I want to read-refresh and access token but I have not found any method or class which gives me refresh and access token.
All Answers
identifier="3MVG9Zdl7Yn6QDKMCsJWeIlvKopZ7msQYyL8QxLvD3E8Yd49Gt1N2HApGbrEtOMMU6x9yWuvY20_l5YTR5u6w-2996293072" clientId="3MVG9Zdl7Yn6QDKMCsJWeIlvKopZ7msQYyL8QxLvD3E8Yd49Gt1N2HApGbrEtOMMU6x9yWuvY20_l5YTR5u6w" domain="login.salesforce.com" identityUrl="https://login.salesforce.com/id/00D770000000YtEAE/00577000000UknSAAP" instanceUrl="https://login.salesforce.com" communityId="(null)" communityUrl="(null)" issuedAt="2017-10-26 07:15:42 +0000" organizationId="00D770000000Zq9DRD" protocol="https" redirectUri="testsfdc:///mobilesdk/detect/oauth/done">, community=(null)
SFUserAccountManager.sharedInstance().currentUser?.credentials.accessToken
SFUserAccountManager.sharedInstance().currentUser?.credentials.refreshToken
One thing I want to ask can we get to know expiration of access token and refresh token?