Skip to content

Commit ae4728a

Browse files
committed
add note to JS users class docs about logIn usePost option
1 parent 815719f commit ae4728a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

_includes/js/users.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ 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+
```javascript
60+
const user = await Parse.User.logIn("myname", "mypass", { usePost: true });
61+
// Do stuff after successful login.
62+
```
63+
5764
## Verifying Emails
5865

5966
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)