Possible error codes
When some errors happen during the authorization flow, SimpleLogin redirects user back to redirect_uri?error={error_code}
so your app can act accordingly. Some errors are often caught during development but some can come from the user. Please find below the complete list of errors:
-
deny
: probably the most frequent error. This happens when user denies sharing their info with your app. You can maybe in this case offer another sign-in mechanism to user, or if SimpleLogin is the only one, let user know that they need to accept sharing their data in order to use your app. -
invalid_client_id
: this happens when the providedclient_id
is unknown or empty. It can happen when theclient_id
is not set correctly in the code. As a reminder, the authorization url has the following format:
https://app.simplelogin.io/oauth2/authorize
?response_type=[code|token]
&client_id=CLIENT_ID
&redirect_uri=REDIRECT_URI
&scope=profile
&state=STATE
-
http_not_allowed
: by default,http[s]://localhost:*
is whitelisted to facilitate development. However once the Sign in with SimpleLogin code hits the production, a correctredirect_uri
needs to be set on developer page (cf App). For security reason,http
is not allowed so you must usehttps
for the web. For mobile apps, a custom scheme (e.g.com.my_company.my_app://
) is also allowed. -
unknown_redirect_uri
: theredirect_uri
, if other thanhttp[s]://localhost:*
needs to be set on developer page. Please see App.