sCAuth class

Constructors

sCAuth(String app_id, String app_secret)
Creates an instance to use the schmuckliCloud Authentication library.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

authorizeEmailPassword(String email, String password) → Future
Authorizes the user with email and password. In the body you will find the session token. @param email The email of the user @param password The password of the user @returns If it was successful, it will provide the session token in the body. Save it somewhere safe on the client.
checkSession(String token) → Future
Checks if the token provided is still valid and matches with the server. @param token The session token, which you got, when the user has been authorized.
getUserProfile(String token) → Future
Gets the users profile from the token @param token The session token, which you got, when the user has been authorized.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
registerEmailPassword(String email, String password, String language) → Future
Adds a new user to the authentication system. @param email The new email @param password The new password @param language A two letter language code (ex. de, en) @returns A Response instance, if the request has been finished completed
requestResetPassword(String email) → Future
If the user has forgottten his password, just provide the email and it will send an email with a password change link. @param email The email from the account (ex. EmailPassword or any other provider)
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited