FlutterFeathersjs class
FlutterFeatherJs allow you to communicate with your feathers js server
GENERAL NOTE 1
: Serialization and Deserialization are not supported.
You get exactly what feathers server send
GENERAL NOTE 2
: To send file, use rest client, socketio client cannot upload file
Authentification is processed by:
// Global auth (Rest and Socketio)
var rep = await flutterFeathersjs
.authenticate(userName: user["email"], password: user["password"]);
//Then use this one to reUse access token as it still valided
var reAuthResp = await flutterFeathersjs.reAuthenticate();
Constructors
- FlutterFeathersjs()
-
factory
Properties
Methods
-
authenticate(
{String strategy: "local", String userName, String password, String userNameFieldName: "email"}) → Future< Map< String, dynamic> > - Authenticate rest and scketio clients so you can use both of them [...]
-
init(
{String baseUrl, Map< String, dynamic> extraHeaders}) → dynamic - Intialize both rest and scoketio client
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
reAuthenticate(
) → Future< Map< String, dynamic> > - Authenticate rest and scketio clients so you can use both of them [...]
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited