[Office Hours] PRISMA: Authentication with JWT, Swift to React Synchronization #83
Unanswered
EvelynBunnyDev
asked this question in
Office Hours
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For Friday Mar 1 Office Hour @Supereg
Related Discussion
Refer to this for a general overview of what we are trying to implement for our chatbot authentication: https://github.com/orgs/CS342/discussions/78
Right now, we are running into an issue pulling all of the code in our React frontend, Python backend, and iOS app in Swift. We whiteboarded a workflow which we can show you in person.
One primary issue we have right now is that the localhost:3000 web server does not return a JSON response. Here's the error from the web console:
login.tsx:42 Failed to obtain custom token: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
(login.tsx:42 is a print statement).Additionally (and this could be interconnected with the previous issue), our ChatPanel does not render when we run the simulator in Xcode.
This is our login page from the React frontend that renders a login page and our chat page:
We think our error is here in our React code and not on the Swift side or the Python backend, but happy to share any and all files to find the root cause.
Reproduction
Web server error display:
Swift console error:
Simulator is always loading...
Additional context
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions