{"repo":"descope/descope-kotlin","free":true,"listed":false,"github":"https://github.com/descope/descope-kotlin","clone":"git clone https://github.com/descope/descope-kotlin.git","description":"Kotlin library (Android) used to integrate with Descope","language":"Kotlin","stars":49,"topics":["android","authentication","descope","kotlin","kotlin-android","kotlin-sdk","sdk","mobile"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Descope SDK for Android The Descope SDK for Android provides convenient access to the Descope user management and authentication APIs for applications written for Android. You can read more on the Descope Website. Setup Add the following to your build.gradle dependencies: Quickstart A Descope Project ID is required to initialize the SDK. Find it on the project page in the Descope Console. Authenticate the user in your application by starting one of the authentication methods. For example, let's use OTP via email: Finish the authentication by verifying the OTP code the user entered: On the next application launch check if there's a logged in user to decide which screen to show: Use the active session to authenticate outgoing API requests to the application's backend: Error Handling Any and all API calls performed by the Descope SDK can fail for various reasons. In the event of either a technical, i.e. network related, or logical error occur, a DescopeException will be thrown. It's Important to always take error handling into account. A good example can be seen at the quickstart section, and further details can be read via the DescopeException class documentation Session Management The DescopeSessionManager class is used to manage an authenticated user session for an application. The session manager takes care of loading and saving the session as well as ensuring that it's refreshed when needed. For the default instances of the DescopeSessionManager class this means using the E","default_branch":null,"files":null,"tree":[],"storefront":"/r/descope","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/descope/descope-kotlin/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}