Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

285
Views
Why do I have a error when I use help me please keycloak.init?

how can I solve this problem? help me please keycloak.init({ onLoad: 'login-required' }).success(function () {}

TypeError: keycloak.init is not a function

about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

Instead of :

const keycloak = Keycloak('./public/keycloak.json');

Try this:

const keycloak = Keycloak('/keycloak.json');

and set promiseType to native in the init options like this(in your case) :

keycloak.init({onLoad: 'login-required', promiseType: 'native'}).then(authenticated => {
   this.setState({ keycloak: keycloak, authenticated: authenticated })
 })

Share E

about 4 years ago · Juan Pablo Isaza Report

0

instead of :

const keycloak = Keycloak('./public/keycloak.json');

Try this:

const keycloak = Keycloak('/keycloak.json');

and set promiseType to native in the init options like this(in your case) :

keycloak.init({onLoad: 'login-required', promiseType: 'native'})
.then(authenticated => { this.setState({ keycloak: keycloak, authenticated: authenticated }) })
about 4 years ago · Juan Pablo Isaza Report

0

it is a good answer thank you very much

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!