Rank 4: Virtual Machine
recreating same Thread
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 4: Virtual Machine
recreating same Thread
Rank 4: Virtual Machine
https://github.com/arifqayoom39/ecommerce_app.git
this is my Code
Rank 4: Virtual Machine
But if I restart the app & then login again My app is working Fine
What's the part?
Rank 4: Virtual Machine
Authentication Part!
Includes, Auth service, authprovider
Looks like your registering the user but not login it after registering.
Registration doesn't create a session by default
Rank 4: Virtual Machine
Yes the check the code after signup ... Again When I login This happens!
Rank 4: Virtual Machine
🤌
it'll be best if you add some related code snippets instead of the repo link. Its much more helpful to someone reading the thread for the first time.
Rank 4: Virtual Machine
But After Restarting the app... After login its working fine
Looks like you're not passing the client to the account and database
No idea. Could be that
Rank 4: Virtual Machine
let me try If I can forward the code
Rank 4: Virtual Machine
If you find some fix after reading the repo.. Plz help!
Where is the client method located at?
Rank 4: Virtual Machine
constants file😁
But client
.setEndpoint()
.setProject()
Rank 4: Virtual Machine
appwrite_provider.dart
Why are you using a provider for that? 👀
make sure you have only one instance of Client. I just saw one Client in AuthProvider, another in AppwriteProvider.
Also, I think the providers are conflicting. I think It's better to have the client as a constant outside of a provider
Rank 4: Virtual Machine
ummm... I ll fix that For sure!... Can this solve?
Rank 4: Virtual Machine
Sure I will do the same & Update here in the thread if solved or not
Rank 4: Virtual Machine
[SOLVED] Current User is Not authorized