Text input / password and Get secret?

But if you wish to continue with secret keys, you can run:
backend/keys.js w :

import wixSecretsBackend from 'wix-secrets-backend';
export function getSecret (value) {
    return getSecret(value).then(secret => {
    if(!secret){return Promise.reject('no-match');}
    return secret;
    })
    .catch(err => err);
}

FRONT END:

import wixLocation from 'wix-location';
import { getSecret } from 'backend/keys.jsw';
export function button1_click(event) {
getSecret($w('#input1').value)
.then(() => wixLocation.to('/1'));
}

[UPDATED]