Posts

Showing posts from February, 2023

pwdless

  < div style = " display: flex; justify-content: right; " >     < input type = "text" value = "" id = "sub" readonly size = "50" >< button onclick = " copy_text ()" > Copy </ button > </ div > < div style = " display: flex; align-items: right; " id = "in_out" >     </ div > < script type = "module" >     import passwordless from './src/index.js'     const scope = { scope : 'openid' }         async function init () {         window . login_status = await passwordless . id ( scope )                 if ( window . login_status . signedIn ){                             document . getElementById ( 'sub' ). value =   window . login_status . profile . sub             //??? console.log("curl -X GET https://api.passwordless.id/openid/validate?token="+ window.login_status.id_token +"&origin="+