ios-sdk icon indicating copy to clipboard operation
ios-sdk copied to clipboard

Is there any way to get code, instead of accessToken?

Open SiSa68 opened this issue 4 years ago • 2 comments

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 avatar Apr 11 '21 18:04 SiSa68

@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

mmdock avatar Jul 01 '21 17:07 mmdock

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.

sgoodwin avatar Aug 10 '22 08:08 sgoodwin