This commit is contained in:
2020-08-22 18:31:48 +02:00
parent 7750829b39
commit ab4fc8e18a
7 changed files with 535 additions and 49 deletions

View File

@@ -19,9 +19,11 @@ const SetupKey: React.FC = () => {
const [email, setEmail] = useState('');
const downloadPublicKey = useCallback(() => {
const publicKeyBlob = new Blob([publicKey!]);
const publicKeyBlob = new Blob([publicKey + ''], {
type: 'text/text',
});
downloadLink('public-key.asc', publicKeyBlob);
}, []);
}, [publicKey]);
const setupKey = useCallback(() => {
createKey(name, email);