How to find keycloak.js of deleted github repository?

Hello,

I have included the following script in my index.html of my Angular Application: https://rawgit.com/keycloak/keycloak-js-bower/master/dist/keycloak.js

Unfortunately the code is no longer available on Github. Does anyone know if the script is still available somewhere else? What is the reason why the repository is offline?

The script must have been in the following repository: https://github.com/keycloak/keycloak-js-bower/blob/master/dist/keycloak.d.ts

Thanks and best regards.

1 Like

Hello, we have the same issue here.

1 Like

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

1 Like

Thanks for your answer dasniko!

I could solve the error in the following way now:

  1. Execute the command in your angular project: npm i keycloak-js

  2. Include the following keycloak javascript into your angular.json:

     "scripts": [
              "./node_modules/keycloak-js/dist/keycloak.min.js"
            ]

After re-building my angular application the error was solved again:

Error: ReferenceError: Keycloak is not defined(…)

I hope it helps you too!