client = new Client();
account
constructor(){
this.client
.setEndpoint(conf.appwriteUrl)
.setProject(conf.appwriteProjectId)
this.account = new Account(this.client)
}
async login({email,password}){
try {
//const account = this.account
//console.log(typeof(email))
// await this.account.createEmailSession(email,password).then((res)=>(
// console.log(res)
// ))
return await this.account.createEmailSession(email,password)
} catch (error) {
console.log("AuthService service :: login() :: " + error.message)
throw error
}
}
This is the code in which at login in I ran into a problem station this.account.createEmailSession is not a function
Can anyone help me in this
AuthService service :: login() :: this.account.createEmailSession is not a function
Join us for AWS Security LIVE!
Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)