Skip to content

Commit 6490762

Browse files
anshumanvalexander-akait
authored andcommitted
feat: allow username and password in clientURL
1 parent 53d7a05 commit 6490762

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

bin/cli-flags.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,36 @@ module.exports = {
275275
multiple: false,
276276
simpleType: 'string',
277277
},
278+
'client-web-socket-url-username': {
279+
configs: [
280+
{
281+
type: 'string',
282+
multiple: false,
283+
description:
284+
'Tells clients connected to devServer to use the provided username to authenticate.',
285+
path: 'client.webSocketURL.username',
286+
},
287+
],
288+
description:
289+
'Tells clients connected to devServer to use the provided username to authenticate.',
290+
simpleType: 'string',
291+
multiple: false,
292+
},
293+
'client-web-socket-url-password': {
294+
configs: [
295+
{
296+
type: 'string',
297+
multiple: false,
298+
description:
299+
'Tells clients connected to devServer to use the provided password to authenticate.',
300+
path: 'client.webSocketURL.password',
301+
},
302+
],
303+
description:
304+
'Tells clients connected to devServer to use the provided password to authenticate.',
305+
simpleType: 'string',
306+
multiple: false,
307+
},
278308
'web-socket-server': {
279309
configs: [
280310
{

lib/options.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@
155155
"type": "string"
156156
},
157157
"username": {
158-
"description": "Tells clients connected to devServer to use the provided username to connect.",
158+
"description": "Tells clients connected to devServer to use the provided username to authenticate.",
159159
"type": "string"
160160
},
161161
"password": {
162-
"description": "Tells clients connected to devServer to use the provided password to connect.",
162+
"description": "Tells clients connected to devServer to use the provided password to authenticate.",
163163
"type": "string"
164164
},
165165
"port": {

0 commit comments

Comments
 (0)