Skip to content

Commit 82bbbae

Browse files
committed
v1.0.12 - Fixed login
1 parent 311e25e commit 82bbbae

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.0.12
2+
Fixed logout
3+
14
## 1.0.11
25
ParseFile fixed
36
Anonymous login

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Want to get involved? Join our Slack channel and help out! (http://flutter-parse
1313
To install, either add to your pubspec.yaml
1414
```
1515
dependencies:
16-
parse_server_sdk: ^1.0.11
16+
parse_server_sdk: ^1.0.12
1717
```
1818
or clone this repository and add to your project. As this is an early development with multiple contributors, it is probably best to download/clone and keep updating as an when a new feature is added.
1919

example/lib/main.dart

+7-2
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,14 @@ class _MyAppState extends State<MyApp> {
155155
// Best practice for starting the app. This will check for a valid user
156156
user = await ParseUser.currentUser();
157157
await user.logout();
158-
user = await ParseUser.currentUser();
159158

160-
response = await ParseUser.getCurrentUserFromServer();
159+
user =
160+
ParseUser("TestFlutter", "TestPassword123", "[email protected]");
161+
response = await user.login();
162+
if (response.success) user = response.result;
163+
164+
response = await ParseUser.getCurrentUserFromServer(
165+
token: user.get(keyHeaderSessionToken));
161166
if (response.success) user = response.result;
162167

163168
response = await user.save();

lib/src/base/parse_constants.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
part of flutter_parse_sdk;
22

33
// Library
4-
const String keySdkVersion = '1.0.11';
4+
const String keySdkVersion = '1.0.12';
55
const String keyLibraryName = 'Flutter Parse SDK';
66

77
// End Points

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: parse_server_sdk
22
description: Flutter plugin for Parse Server, (https://parseplatform.org), (https://back4app.com)
3-
version: 1.0.11
3+
version: 1.0.12
44
homepage: https://github.com/phillwiggins/flutter_parse_sdk
55
author: PhillWiggins <[email protected]>
66

0 commit comments

Comments
 (0)