fix: add information about npm packagage (#1189)

I recieved feedback from customer/users that keycloak client side is widely undocumented, which was surprising.
After checking I found out that in fact for users that use npm there is no documentation provided:

https://www.npmjs.com/package/keycloak-js

This is very rare to see in NPM for package that have such large number of downloads. 
Additionally official docs doesn't mention NPM at all and recommend using js package from server (which is not be best advice if you do CDN's etc.).
Additionally some old bower repo is still 3th result in google and since it has some docs people using it:
https://github.com/keycloak/keycloak-js-bower - worth to remove this as well. 
Added simple note in the docs so hopefully google will position this documentation
This commit is contained in:
Wojciech Trocki 2021-11-10 08:52:54 +00:00 committed by GitHub
parent 09743afbce
commit 96bab33db1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,8 @@ The library can be retrieved directly from the {project_name} server at `/auth/j
A best practice is to load the JavaScript adapter directly from {project_name} Server as it will automatically be updated when you upgrade the server. If you copy the adapter to your web application instead, make sure you upgrade the adapter only after you have upgraded the server.
NOTE: You can also download package from npm: https://www.npmjs.com/package/keycloak-js
One important thing to note about using client-side applications is that the client has to be a public client as there is no secure way to store client
credentials in a client-side application. This makes it very important to make sure the redirect URIs you have configured for the client are correct and as specific as possible.