appwrite / sdk-for-android

[READ-ONLY] Official Appwrite Android SDK 💚 🤖
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
98 stars 21 forks source link

📚 Documentation: Check Session #35

Closed muratdoglu closed 1 year ago

muratdoglu commented 1 year ago

💭 Description

Hi, I want to check session on reopen app and get account object. How can I do?

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

🏢 Have you read the Code of Conduct?

gewenyu99 commented 1 year ago

One of https://appwrite.io/docs/client/account?sdk=web-default#accountGet https://appwrite.io/docs/client/account?sdk=web-default#accountGetSession

Will give you what you need. I think for your case, and account object, it's just account.get()

muratdoglu commented 1 year ago

@gewenyu99 hi, I forgot to use 'new Account(client)' thank you. Everything is okay.