<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Adnan Ahmad Khan</title>
    <description>The latest articles on DEV Community by Adnan Ahmad Khan (@adnankhn).</description>
    <link>https://dev.to/adnankhn</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1249678%2Fcca62593-d43d-480a-aaca-0a0093e41424.jpeg</url>
      <title>DEV Community: Adnan Ahmad Khan</title>
      <link>https://dev.to/adnankhn</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adnankhn"/>
    <language>en</language>
    <item>
      <title>error in login function using Appwrite</title>
      <dc:creator>Adnan Ahmad Khan</dc:creator>
      <pubDate>Tue, 21 May 2024 20:12:45 +0000</pubDate>
      <link>https://dev.to/adnankhn/error-in-login-function-using-appwrite-449n</link>
      <guid>https://dev.to/adnankhn/error-in-login-function-using-appwrite-449n</guid>
      <description>&lt;p&gt;&lt;em&gt;client = new Client();&lt;br&gt;
    account&lt;br&gt;
    constructor(){&lt;br&gt;
        this.client&lt;br&gt;
        .setEndpoint(conf.appwriteUrl)&lt;br&gt;
        .setProject(conf.appwriteProjectId)&lt;br&gt;
        this.account = new Account(this.client)&lt;br&gt;
    }&lt;br&gt;
async login({email,password}){&lt;br&gt;
        try {&lt;br&gt;
            //const account = this.account&lt;br&gt;
            //console.log(typeof(email))&lt;br&gt;
            // await this.account.createEmailSession(email,password).then((res)=&amp;gt;(&lt;br&gt;
            //     console.log(res)&lt;br&gt;
            // ))&lt;br&gt;
            return await this.account.createEmailSession(email,password)&lt;br&gt;&lt;br&gt;
        } catch (error) {&lt;br&gt;
            console.log("AuthService service :: login() :: " + error.message)&lt;br&gt;
            throw error&lt;br&gt;
        }&lt;br&gt;
    }&lt;/em&gt;&lt;br&gt;
&lt;strong&gt;This is the code in which at login in I ran into a problem station this.account.createEmailSession is not a function&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Can anyone help me in this&lt;/strong&gt;&lt;br&gt;
AuthService service :: login() :: this.account.createEmailSession is not a function&lt;/p&gt;

</description>
      <category>react</category>
      <category>appwritehack</category>
      <category>programming</category>
      <category>frontend</category>
    </item>
  </channel>
</rss>
