menu
Channels
# All channels
view-forward
# General
view-forward
# Announcements
view-forward
# Feedback
view-forward
# Guides
view-forward
# I Made This
view-forward
Team

Quick question / feedback after first 10 mins

March 28, 2019 at 4:05pm

Quick question / feedback after first 10 mins

March 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 useFakeAuth and 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?
Edited
  • reply
  • like
For starters a list of possible data to match against and show would be ok.
like-fill
1
  • reply
  • like
Okay cool, will add some docs on that and link to it from the edit modal code section. Thanks for the feedback. Fyi, currently signin() and signup() require no args and auth is just a true/false boolean.
  • reply
  • like