Help wanted with authentication #2012
Unanswered
bradley-varol
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm using solid and solid-start for the first time and I am current trying to implement authentication with AppWrite (just to get stuck in quickly) - I have the following (a lot of code removed for breavity):
First of all, is a context the best way to handle auth? In Nuxt.js i've always just created a store...
Secondly, how do i fetch the user on initial app load? Doing this inside the AuthProvider seems to work but it runs every time I call any of the auth methods. I am using AppWrite as a BaaS - I might need to check the presence of something in localStorage before fetching the user so this shouldn't happen on the server.
Any advice related to auth is much appreciated - I intend to use solid-start with a Laravel backend which should be a similar flow!
Beta Was this translation helpful? Give feedback.
All reactions