strapi-sdk-javascript
strapi-sdk-javascript copied to clipboard
It's very difficult to handle errors after api call
try { const res = await strapi.register(username, email, password); setToken(res); return res; } catch (error) { return Promise.reject(error); }
We can't parse the error message here