Open vaibhavthakurs opened 2 years ago
Also I Need a solution for this pls help!
Also I Need a solution for this pls help!
Please check in your network are you getting a token or authToken? Check all your spelling of authtoken or its authToken in your code. You can continue with (token), there is no need to change that, i had completed my project with the same
Also I Need a solution for this pls help!
Please check in your network are you getting a token or authToken? Check all your spelling of authtoken or its authToken in your code. You can continue with (token), there is no need to change that, i had completed my project with the same
Thanks Bro It Worked!
Also I Need a solution for this pls help!
Please check in your network are you getting a token or authToken? Check all your spelling of authtoken or its authToken in your code. You can continue with (token), there is no need to change that, i had completed my project with the same
Thanks Bro It Worked!
can you please tell me how i am getting the same error please help me bro
Also I Need a solution for this pls help!
Please check in your network are you getting a token or authToken? Check all your spelling of authtoken or its authToken in your code. You can continue with (token), there is no need to change that, i had completed my project with the same
Thanks Bro It Worked!
can you please tell me how i am getting the same error please help me bro
check for spell error in authtoken whether u have named it as authToken or authtoken in your backend
write this 'notes || notes.map((note)' instead of 'notes.map((note)'.
I write this " "auth-token": localStorage.getItem('auth-token') " and it will gave error "notes.map is not a function" after that I check in network where " auth-token: undefined " can anyone please help me to fix it.
I write this " "auth-token": localStorage.getItem('auth-token') " and it will gave error "notes.map is not a function" after that I check in network where " auth-token: undefined " can anyone please help me to fix it.
change authtoken in the auth.js file to token. Change every occurence of authtoken to token present in the backend file and remove the hard coded auth-token value from thunder client's header
getitem I small rakho
On Thu, Mar 23, 2023, 3:04 PM Bhargav Reddy @.***> wrote:
I write this " "auth-token": localStorage.getItem('auth-token') " and it will gave error "notes.map is not a function" after that I check in network where " auth-token: undefined " can anyone please help me to fix it.
change authtoken in the auth.js file to token. Change every occurence of authtoken to token present in the backend file.
— Reply to this email directly, view it on GitHub https://github.com/CodeWithHarry/iNotebook-React/issues/22#issuecomment-1480909552, or unsubscribe https://github.com/notifications/unsubscribe-auth/A23X73KUL4W4FLEGYKYITXDW5QNZPANCNFSM5MZ4N2HA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Check whether you are receiving notes as a object or an array? Most probably it's a object that's why error is coming
If object then use {Object.keys(notes).map((Note)=>{ )}}
On Sat, May 27, 2023, 7:15 AM ABHISHEK @.***> wrote:
Check whether you are receiving notes as a object or an array? Most probably it's a object that's why error is coming
— Reply to this email directly, view it on GitHub https://github.com/CodeWithHarry/iNotebook-React/issues/22#issuecomment-1565161087, or unsubscribe https://github.com/notifications/unsubscribe-auth/A23X73KH32MOKAXCDHE65HDXIFPSXANCNFSM5MZ4N2HA . You are receiving this because you commented.Message ID: @.***>
Please help.! After changing hard code auth token from localStorage, i am getting an error : notes.map is not a function. i have replace 'token' from 'auth-token' in all code after getting someone's comment. But it is not working for me.!! PLease Help!!
I am facing the same issue I am getting token in the network
check your auth.js file and fetchuser.js file in backend. you might have written auth-token. simple write auth-token instead of token in localStorage.getItem('auth-token') in NoteState.js,login.js,signup.js.,Notes.js and Navbar.js. Also replace the json.authtoken with authToken in Login.js and Signup.js. hope this will help you
Please help.! After changing hard code auth token from localStorage, i am getting an error : notes.map is not a function. i have replace 'token' from 'auth-token' in all code after getting someone's comment. But it is not working for me.!! PLease Help!!