Back

[SOLVED] Session Handling IOS

  • 0
  • Apple
hoffmäään
28 Sep, 2023, 07:24

Dear folks,

i'am confused after i sucessfully create an email session, what i hve to do with the session object for further request like storage.

TypeScript
                let session = try await account.createEmailSession(
                    email: "xx@xx.com",
                    password: "xx")
                

Have to save the session object in Keyring? How to pass the session object to storage call? Or is the session saved in the account or clinet object?

TL;DR
The user is confused about what to do with a session object after successfully creating an email session on iOS. They are unsure whether they should save the session object in Keyring or how to pass it to a storage call. The session object is saved by the account or client object. So, there is no need to save it separately. Once logged in, the session cookies are saved and can be accessed by the client to perform authenticated requests. Solution: There is no need to save the session object separately. It is automatically saved by the account or client object.
darShan
28 Sep, 2023, 07:25

Once logged in, you can access all resources. Session only provides some information, see - https://appwrite.io/docs/models/session

darShan
28 Sep, 2023, 07:26

The session cookies are saved which are accessed by the Client to perform authenticated requests.

hoffmäään
28 Sep, 2023, 07:27

Ok Thanks a lot!

Drake
28 Sep, 2023, 22:03

[SOLVED] Session Handling IOS

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more