Skip to content

Commit

Permalink
Documentation updated added loginWithToken
Browse files Browse the repository at this point in the history
  • Loading branch information
cemalgnlts authored Oct 4, 2022
1 parent 16a286b commit 4d86e1e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ mailjs.login("user@example.com", "password")
.then(console.log)
```

### Login With Token

If you use the JWT token stored in `mailjs.token` after login, it will allow you to login without username and password.

```js
mailjs.loginWithToken("eyJ0eXAiO...")
.then(console.log)
```

### Get Account Data
```js
mailjs.me()
Expand Down

0 comments on commit 4d86e1e

Please sign in to comment.