Question

Which SDK to pick for Javascript apps?

  • 29 October 2021
  • 1 reply
  • 35 views

Userlevel 3

While browsing through the SDKs in https://github.com/asgardeo/ I noticed there are two options to use for JavaScript apps.

  1. https://github.com/asgardeo/asgardeo-auth-js-sdk
  2. https://github.com/asgardeo/asgardeo-auth-spa-sdk

Which one is the recommended for someone trying to use it in a single page app written in JS?


1 reply

Hi @Xurderuster ,

Have you decided on the technology that you are planning to write the application in?

We have SDKs for Angular & React that has out of the box support for framework specific functionalities. I would recommend you to use one of these if you are planning to develop your application with React or Angular.

React - https://github.com/asgardeo/asgardeo-auth-react-sdk

Angular - https://github.com/asgardeo/asgardeo-auth-angular-sdk

Let me give an explanation on the `asgardeo-auth-js-sdk` & `asgardeo-auth-spa-sdk`.

asgardeo-auth-js-sdk contains the core methods needed to implement the authentication logic. This is being consumed by the asgardeo-auth-spa-sdk to inherit core functions. In addition, `spa-sdk` has functionalities that are specific for SPA applications such as browser redirects, etc. `spa-sdk` was used as a base for React & Angular SDKs.
 

Reply