Problem statement
Currently Login.tsx holds the functionality of the logic to connect to the backend login endpoint. This causes anyone using the package to be unable to adjust the UI for the login form.
Proposed solution
As of right now, handlePasskeyLogin(64), login(105), register(131), sendMagicLink(161),sendPhoneOTP(179) can probably be extracted into maybe the util file. I think these functions will need a new parameter, and have the token pass to the backend to register?
Alternatives considered
No response