Skip to content

Commit 0d494e4

Browse files
authored
add note to JS users class docs about logIn usePost option (#767)
1 parent ecc9400 commit 0d494e4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

_includes/js/users.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ const user = await Parse.User.logIn("myname", "mypass");
5454
// Do stuff after successful login.
5555
```
5656

57+
By default, the SDK uses the GET HTTP method. If you would like to override this and use a POST HTTP method instead, you may pass an optional Boolean property in the options argument with the key `usePost`.
58+
59+
60+
```javascript
61+
const user = await Parse.User.logIn("myname", "mypass", { usePost: true });
62+
// Do stuff after successful login.
63+
```
64+
> Available with SDK version 2.17.0 and later
65+
5766
## Verifying Emails
5867

5968
Enabling email verification in an application's settings allows the application to reserve part of its experience for users with confirmed email addresses. Email verification adds the `emailVerified` key to the `Parse.User` object. When a `Parse.User`'s `email` is set or modified, `emailVerified` is set to `false`. Parse then emails the user a link which will set `emailVerified` to `true`.

0 commit comments

Comments
 (0)