question

jimm555 avatar image
jimm555 asked Mark Mullan Deactivated answered

How do I do OAuth in iOS

I learned that it is bad to use API token generated from the developer page and it is recommended to get API Token from OAuth but how do I do it via OAuth for iOS?
OAuthAPI Token
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Mark Mullan avatar image
Mark Mullan Deactivated answered
Hi @jimm555, our OAuth flow must be completed in a browser, as it requires that the merchant be redirect to a Clover URL, where they enter their login credentials. We then redirect back to a Site URL that you designate, and return an API Token to you appended as a query param.

If you're looking to build an iOS app that includes our OAuth flow, I would render a UIWebView for this step.

https://docs.clover.com/build/oauth-2-0/
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community