Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Session is not persistent #97

Open
2 tasks done
SmitProgrammer opened this issue Dec 3, 2024 · 2 comments
Open
2 tasks done

🐛 Bug Report: Session is not persistent #97

SmitProgrammer opened this issue Dec 3, 2024 · 2 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@SmitProgrammer
Copy link

👟 Reproduction steps

Login the user and try to print logged in user it shows Guest user

👍 Expected behavior

whenever user login it should show the logged in user

👎 Actual Behavior

Its not storing sessions even if the user is logged in it works like no one has logged in

🎲 Appwrite version

Version 0.10.x

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@SmitProgrammer SmitProgrammer added the bug Something isn't working label Dec 3, 2024
@stnguyen90
Copy link
Contributor

@SmitProgrammer, thanks for raising this issue! 🙏🏼 Can you provide more details on your steps to reproduce this such as a code snippet?

In general, you would need to use the SSR approach since the Python SDK is a server SDK.

@stnguyen90 stnguyen90 self-assigned this Dec 20, 2024
@stnguyen90 stnguyen90 added the question Further information is requested label Dec 20, 2024
@SmitProgrammer
Copy link
Author

Yeah i know that its a server side sdk but since many people need client side sdk so it would be better if we do like passing a boolean variable that denotes that user wants to create session or not then it may work with both cases.

Code to reproduce:

from appwrite.client import Client
from appwrite.services.account import Account

client = Client()

(client
  .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
  .set_project('5df5acd0d48c2') # Your project ID
)

auth = Account(client)

auth.create_email_password_session(email, password)

print(auth.get()) # returns Guest user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants