Skip to content

Commit 54e3259

Browse files
committed
Delete pubspec.lock to fix merge conflict error
2 parents 9d6ccd3 + 5ffb3cd commit 54e3259

File tree

13 files changed

+631
-582
lines changed

13 files changed

+631
-582
lines changed

CHANGELOG.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
## 0.0.7
21

2+
## 0.1.0
33

4-
## 0.0.1+1
4+
- Improvment: Documentation of the code
5+
- Breaking: on both rest and socketio, you get exactly what feathers js send, we don't support any serializer or deserializer. So how previous version handle data is breaken
6+
- Feature: Add event listen but not fully tested
7+
- Authentication don't matter if you auth user with email/password. You can use email/password, phone/password, userName/password
8+
- Feature: support now phone, email, etc, with password authentication
59

6-
- remove unsed comment
7-
## 0.0.1
10+
## 0.0.7
811

12+
- remove unused comment
913
- Add formData handling
1014
- Update readme
15+
1116
## 0.0.6-dev
1217

1318
- Fix

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The MIT License (MIT)
22

3-
Copyright (c) 2019 Justin Dah-kenangnon <dah.kenangnon@gmail.com>
3+
Copyright (c) 2020-present Justin Dah-kenangnon <dah.kenangnon@gmail.com>
44

55
> Permission is hereby granted, free of charge, to any person obtaining a copy
66
> of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
# flutter_feathersjs :bird:
1+
# :bird: flutter_feathersjs :bird:
22

3-
Communicate with your feathers js server from flutter.
4-
*__FormData support out the box, auth, reAuth, socketio send event, rest ...__ But event listen via socketio not yet implemented*
3+
Communicate with your feathers js (https://feathersjs.com/) server from flutter.
54

5+
`Infos: Feathers js is a node framework for real-time applications and REST APIs.`
6+
7+
8+
*__FormData support out the box, auth, reAuth, socketio send event, rest ...__
69

710
## Import it
811

@@ -22,34 +25,44 @@ FlutterFeathersjs flutterFeathersjs = FlutterFeathersjs()
2225
## Authentication with either with rest or socketio
2326

2427
```dart
25-
// Auth with rest client
28+
// Auth with rest client with email/password [Default strategy is email/password]
2629
var authResponse = await flutterFeathersjs.rest
27-
.authenticate(email: user["email"], password: user["password"]);
30+
.authenticate(userName: user["email"], password: user["password"]);
31+
32+
// Auth with rest client with phone/password
33+
var authResponse = await flutterFeathersjs.rest.authenticate(
34+
strategy: "phone",
35+
userNameFieldName: "tel",
36+
userName: user["tel"],
37+
password: user["password"]);
2838
2939
//Second time, application will restart, just:
3040
var reAuthResponse = await flutterFeathersjs.rest.reAuthenticate();
3141
3242
// Or With socketio
3343
// Note: This must be call after rest auth success
44+
// Not recommanded to use this directly
3445
var authResponse = await flutterFeathersjs.scketio.authWithJWT();
3546
3647
```
3748

38-
## Simplify yor life, Auth both client one time
49+
## Auth both client one time
3950

4051
```dart
4152
4253
// Auth first time with credentials
43-
var authResponse = await flutterFeathersjs.authenticate(email: null, password: null);
54+
var authResponse = await flutterFeathersjs.authenticate(
55+
strategy: "phone",
56+
userNameFieldName: "tel",
57+
userName: user["tel"],
58+
password: user["password"]);
4459
4560
// on App restart, don't disturbe user, just reAuth with with accessToken, early store by FlutterFeathersjs
4661
var reAuthResponse = await flutterFeathersjs.reAuthenticate()
4762
4863
```
4964

50-
## Important
65+
## Contribution
5166

52-
- Listen to event on socketio is not yet implemented
53-
- Documentation is coming
5467
- Contact-me for improvment or contribution purpose
5568
- Example is coming

0 commit comments

Comments
 (0)