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
Copy file name to clipboardExpand all lines: README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,22 +143,24 @@ Optional. Default: `false`.
143
143
-`apiKey {Object}` — <br/>
144
144
Optional. Default: `undefined`.
145
145
146
-
-`url {string}` — <br/>
146
+
-`url {string}` — The absolute url to be requested. It's possible to use a [`pupa` template][pupa] with placeholders called `realm` and `clientId` getting rendered based on the passed options.<br/>
147
+
Example: `http://barfoo.com/foo/{clientId}`<br/>
147
148
Required.
148
149
149
-
-`in {string}` — <br/>
150
+
-`in {string}` — Whether the api key is placed in the headers or query.<br/>
151
+
Allowed values: `headers` & 'query'<br/>
150
152
Optional. Default: `headers`.
151
153
152
-
-`name {string}` — <br/>
154
+
-`name {string}` — The name of the related headers field or query key.<br/>
153
155
Optional. Default: `authorization`.
154
156
155
-
-`prefix {string}` — <br/>
157
+
-`prefix {string}` — An optional prefix of the related api key value. Mind a trailing space if necessary.<br/>
156
158
Optional. Default: `Api-Key `.
157
159
158
-
-`tokenPath {string}` — <br/>
160
+
-`tokenPath {string}` — The path to the access token in the response its body as dot notation.<br/>
159
161
Optional. Default: `access_token`.
160
162
161
-
-`options {Object}` – <br/>
163
+
-`request {Object}` – The detailed request options for [`got`][got].<br/>
162
164
Optional. Default: `{}`
163
165
164
166
#### `await server.kjwt.validate(field {string})`
@@ -282,3 +284,5 @@ For further information read the [contributing guideline](CONTRIBUTING.md).
0 commit comments