Text input / password and Get secret?

Hello and thank you for your answer.

// “)” missing after no-match?
Backend is:

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);
}

All seems to be in place, but wixLocation is highlighted and cannot be found.

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

Is this missing in Frontend

import wixLocation from 'wix-location'; 
$w.onReady(function () { 
});

?
No clue how to add it to abovementioned