Skip to content

Commit

Permalink
doc: mark tlsSocket.authorized as boolean property
Browse files Browse the repository at this point in the history
This is not a function and should not have a return type.

PR-URL: #42647
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
tniessen authored and targos committed Jul 31, 2022
1 parent 85aeae2 commit ba1f864
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -978,10 +978,10 @@ property is set only when `tlsSocket.authorized === false`.
added: v0.11.4
-->

* Returns: {boolean}
* {boolean}

Returns `true` if the peer certificate was signed by one of the CAs specified
when creating the `tls.TLSSocket` instance, otherwise `false`.
This property is `true` if the peer certificate was signed by one of the CAs
specified when creating the `tls.TLSSocket` instance, otherwise `false`.

### `tlsSocket.disableRenegotiation()`

Expand Down

0 comments on commit ba1f864

Please sign in to comment.