You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basic authentication allows you to log in with credentials. You can use username and password, but this login method is not supported in the online version and most standalone versions, so it's better to release API Token. Read how to do it [here](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/) and use it together with email.
60
+
To create an API Token, use this link: [https://id.atlassian.com/manage-profile/security/api-tokens](https://id.atlassian.com/manage-profile/security/api-tokens)
62
61
63
-
Username and password example:
64
-
65
-
```typescript
66
-
import { Version3Client } from'jira.js';
67
-
68
-
const client =newVersion3Client({
69
-
host: 'https://your-domain.atlassian.net',
70
-
authentication: {
71
-
basic: {
72
-
username: 'YOUR_USERNAME',
73
-
password: 'YOUR_PASSWORD',
74
-
},
75
-
},
76
-
});
77
-
```
78
-
79
-
Email and API Token example:
62
+
Example of usage
80
63
81
64
```typescript
82
65
import { Version3Client } from'jira.js';
@@ -111,20 +94,6 @@ const client = new Version3Client({
To create a personal access token, use this link: [https://id.atlassian.com/manage-profile/security/api-tokens](https://id.atlassian.com/manage-profile/security/api-tokens)
117
-
118
-
```typescript
119
-
import { Version3Client } from'jira.js';
120
-
121
-
const client =newVersion3Client({
122
-
host: 'https://your-domain.atlassian.net',
123
-
authentication: {
124
-
personalAccessToken: 'secrectPAT',
125
-
},
126
-
});
127
-
```
128
97
129
98
#### Error handling
130
99
Starting from version 4.0.0, the library has a new error handling system.
0 commit comments