AppWriteService class
Properties
account
→ Future <User >
no setter
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Methods
createEmailAccount ({required String email , required String password , String ? name })
→ Future <Map <String , dynamic > >
Returns a map with the following keys:
if there was no error:
createJwtToken ()
→ Future <Map <String , dynamic > >
createPhoneAccount ({required String phone , bool connectMode = false })
→ Future <Map <String , dynamic > >
Returns a map with the following keys:
if there was no error:
createWithProviderAccount ({required OAuthProvider provider })
→ Future <Map <String , dynamic > >
deleteSession ({String ? sessionId })
→ Future <Map <String , dynamic > >
getAppWriteSession ({String ? sessionId })
→ Future <Map <String , dynamic > >
getCurrentSession ()
→ Future <Map <String , dynamic > >
init ({required String endpoint , required String projectId , String ? recovery , bool selfSigned = true })
→ Future <void >
Initializes the App-write service
endpoint
is the endpoint from the App-write console
projectId
is the project ID from the App-write console
selfSigned
is used to set the self signed certificate - default is true
loginEmailAccount ({required String email , required String password })
→ Future <Map <String , dynamic > >
Returns a map with the following keys:
if there was no error:
logout ()
→ Future <Map <String , dynamic > >
Logs out the user
Deletes the session from the Appwrite server
Deletes the session from local storage
resetEmailPassword ({required String email })
→ Future <Map <String , dynamic > >
Returns a map with the following keys:
if there was no error:
resetPassword ({required String userId , required String secret , required String password })
→ Future <Map <String , dynamic > >
Returns a map with the following keys:
if there was no error:
updatePassword ({required String newPassword , required String oldPassword })
→ Future <Map <String , dynamic > >
updatePhoneSession ({required String userId , required String secret })
→ Future <Map <String , dynamic > >
Returns a map with the following keys:
if there was no error:
updateRecovery ({required String userId , required String secret , required String password })
→ Future <Map <String , dynamic > >