import {$authHost, $host} from "./index";
import {jwt_decode} from "jwt-decode";
export const registration = async (email, password) => {
const {data} = await $host.post('api/user/registration', {email, password, role: 'ADMIN'})
localStorage.setItem('token', data.token)
return jwt_decode(data.token)
}
выдает ошибку
in ./src/http/userAPI.js 14:9-19
export 'jwt_decode' (imported as 'jwt_decode') was not found in 'jwt-decode' (possible exports: InvalidTokenError, jwtDecode)