hack4impact-mcgill / MADA-v2

5 stars 2 forks source link

Admin panel scratch #119

Closed sophearahsp closed 1 year ago

sophearahsp commented 1 year ago

Summary

Write a quick summary of your changes here. Make sure to provide context for people that may be unfamiliar with what you're working on!

Test Plan

How did you test your changes?

Related Issues

Which issues does this PR resolve/work on? Closes #

selenajin99 commented 1 year ago

log in isn't working for me with "admin" and "pw", and "admin@example.com1" and "pw". Error is : caught (in promise) TypeError: Cannot read properties of undefined (reading 'data') at handleLogin (page.tsx:47:34)

sophearahsp commented 1 year ago

log in isn't working for me with "admin" and "pw", and "admin@example.com1" and "pw". Error is : caught (in promise) TypeError: Cannot read properties of undefined (reading 'data') at handleLogin (page.tsx:47:34)

haven't been able to recreate issue but it sounds like the endpoint is returning that it's okay but it isn't returning a token. did you npm install on the backend folder because there are new dependencies that are necessary to sign a token @selenajin99

selenajin99 commented 1 year ago

issue fixed by using the localhost url ^