generate functionSat, 06 May 2023

creame un login sin conexion a sql

Script $.ajax({ type: "POST", url: 'https://10.13.1.18:8443/auth/realms/master/protocol/openid-connect/token', contentType: 'application/x-www-form-urlencoded', data: { grant_type: 'password', client_id: 'company-app', username: 'admin', password: 'admin' }, success: function(data) { console.log(data.access_token) $("#token").text(data.access_token) localStorage.setItem("token", data.access_token) }, error: function(data){ console.log("error") } })

Questions about programming?Chat with your personal AI assistant