Kinto / kinto-fxa

Firefox Accounts authentication support in Kinto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for keys retrieval with keys_jwk

Natim opened this issue · comments

const fxaKeyUtils = new FxaCryptoRelier.KeyUtils();

function handleAuthentication() {
  return fxaKeyUtils.createApplicationKeyPair()
    .then((keyTypes) => {
        return {url: `${AUTH_URL}&keys_jwk=${keyTypes.base64JwkPublicKey}`};
      });
    })