Quick question / feedback after first 10 minsMarch 28, 2019 at 4:05pm
How do I set & use the fake-auth stuff in the conditions? Couldn't find how to. I guess I will be able to add more data also?
March 28, 2019 at 4:13pm
Good question! You can't currently modify that function, but we'll be adding a way to have re-usable functions, at which point you'll be able to view the code for
useFakeAuthand modify it. We wanted to get something in there so people could mock auth flows, but that function (react hook) could definitely be improved. In the short-term, are there any specific changes we can make so it's more useful? Would you want it to return a user object that contains some data like id, username, etc?
Okay cool, will add some docs on that and link to it from the edit modal code section. Thanks for the feedback. Fyi, currently
signup()require no args and
authis just a true/false boolean.