|
|
@ -21,6 +21,11 @@ const loginRootUser = async () => { |
|
|
|
|
|
|
|
|
|
|
|
return response.data.token; |
|
|
|
return response.data.token; |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
console.log('Error in loginRootUser', e) |
|
|
|
|
|
|
|
let msg = e.response?.data?.msg || e.response?.data?.message || 'Some internal error occurred' |
|
|
|
|
|
|
|
let errors = e.response?.data?.errors |
|
|
|
|
|
|
|
console.log('msg', msg) |
|
|
|
|
|
|
|
console.log('errors', errors) |
|
|
|
const response = await axios.post( |
|
|
|
const response = await axios.post( |
|
|
|
'http://localhost:8080/api/v1/auth/user/signup', |
|
|
|
'http://localhost:8080/api/v1/auth/user/signup', |
|
|
|
{ email: 'user@nocodb.com', password: 'Password123.' }, |
|
|
|
{ email: 'user@nocodb.com', password: 'Password123.' }, |
|
|
|