@@ -88,21 +88,6 @@ Fetch options are optional, and can be passed in as either a Map-like object
88
88
(one with a ` .get() ` method), a plain javascript object, or a
89
89
[ ` figgy-pudding ` ] ( https://npm.im/figgy-pudding ) instance.
90
90
91
- ##### <a name =" opts-auth-token " ></a > ` opts._authToken `
92
-
93
- * Type: String
94
- * Default: null
95
-
96
- Authentication token string.
97
-
98
- Can be scoped to a registry by using a "nerf dart" for that registry. That is:
99
-
100
- ```
101
- {
102
- '//registry.npmjs.org/:_authToken': 't0k3nH34r'
103
- }
104
- ```
105
-
106
91
##### <a name =" opts-agent " ></a > ` opts.agent `
107
92
108
93
* Type: http.Agent
@@ -362,7 +347,7 @@ account.
362
347
* Default: null
363
348
364
349
Password used for basic authentication. For the more modern authentication
365
- method, please use the (more secure) [ ` opts._authToken ` ] ( #opts-auth -token )
350
+ method, please use the (more secure) [ ` opts.token ` ] ( #opts-token )
366
351
367
352
Can optionally be scoped to a registry by using a "nerf dart" for that registry.
368
353
That is:
@@ -513,6 +498,22 @@ See also [`opts.ca`](#opts-ca).
513
498
514
499
Time before a hanging request times out.
515
500
501
+ ##### <a name =" opts-token " ></a > ` opts.token `
502
+
503
+ * Alias: ` opts._authToken `
504
+ * Type: String
505
+ * Default: null
506
+
507
+ Authentication token string.
508
+
509
+ Can be scoped to a registry by using a "nerf dart" for that registry. That is:
510
+
511
+ ```
512
+ {
513
+ '//registry.npmjs.org/:token': 't0k3nH34r'
514
+ }
515
+ ```
516
+
516
517
##### <a name =" opts-user-agent " ></a > ` opts.user-agent `
517
518
518
519
* Type: String
@@ -526,7 +527,7 @@ User agent string to send in the `User-Agent` header.
526
527
* Default: null
527
528
528
529
Username used for basic authentication. For the more modern authentication
529
- method, please use the (more secure) [ ` opts._authToken ` ] ( #opts-auth -token )
530
+ method, please use the (more secure) [ ` opts.token ` ] ( #opts-token )
530
531
531
532
Can optionally be scoped to a registry by using a "nerf dart" for that registry.
532
533
That is:
@@ -545,4 +546,4 @@ See also [`opts.password`](#opts-password)
545
546
* Default: null
546
547
547
548
** DEPRECATED ** This is a legacy authentication token supported only for
548
- * compatibility. Please us [ ` opts._authToken ` ] ( #opts-auth -token ) instead.
549
+ * compatibility. Please use [ ` opts.token ` ] ( #opts-token ) instead.
0 commit comments