ios-sdk
ios-sdk copied to clipboard
Is there any way to get code, instead of accessToken?
Hi there I always get accessToken and refreshToken, even if I do not attach swap/refresh url ! I want to handle swap token by myself and only get code from SDK (like Android SDK) I wonder if is there any way to get this?
Thanks
@SiSa68 you get a refreshToken? I never get one of those - care to share your implementation?
as for the code flow, you need to use the SPTSessionManager class to request authorization using SPTscope etc for what you need.
i dont add the swap and refresh url and that way the redirect_uri will contain a code
The session manager delegate has a function which gives you the code and gives you a chance to tell the session manager to let you handle swapping the code for the token yourself.