Back

React Native createSession not work

  • 1
  • Web
  • Android
  • Auth
  • Apple
  • Self Hosted
adam
30 Mar, 2024, 15:14

Hi guys, when I try to access with the account.createSession function in React Native it gives me an error telling me that it is not a function and is Undefined, here is the error: account.createSession is not a function (it is undefined)

TL;DR
Developers are facing an issue with the `createSession` function in React Native for Appwrite. The function seems to be missing in the React Native SDK. The developers mention self-hosting everything and not finding documentation for React Native. The team is currently working on the issue with a potential update in a couple of weeks. Developers are advised to ensure they are using the appropriate SDK version compatible with their Appwrite version.
Steven
30 Mar, 2024, 16:12

Make sure you're looking at the docs that match the version of your SDK and compatible with version of Appwrite

adam
30 Mar, 2024, 16:12

there is no docs for React Native

Steven
30 Mar, 2024, 16:15

Are you using Appwrite Cloud?

adam
30 Mar, 2024, 16:15

nono i self hosted everything

adam
30 Mar, 2024, 16:17

I went to check the React Native SDK code and noticed that the createSession function is missing

Steven
30 Mar, 2024, 16:17

So you're running Appwrite version 1.5?

adam
30 Mar, 2024, 16:18

yes

Steven
30 Mar, 2024, 16:18

The react native SDK is built for Appwrite 1.4 and it's based off the web sdk so you can look at the web sdk docs for version 1.4

adam
30 Mar, 2024, 16:19

when will you update it to version 1.5?

Steven
30 Mar, 2024, 16:23

We're working on it. Maybe in a couple weeks

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