Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
signWavesAuth: async (data, user) => {
return wavesAuth(data, user.seed);
},
parseWavesAuth: (message) => {
if (!message || message.type !== 'wavesAuth') {
throw new Error('Incorrect data for sign wavesAuth data');
}
const { data } = message;
const { hash } = wavesAuth(data, 'fake user');
return {
id: hash,
};
},