@tstdl/base 0.93.4 → 0.93.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/server/gateway.js +4 -4
- package/package.json +1 -1
package/api/server/gateway.js
CHANGED
|
@@ -186,14 +186,14 @@ let ApiGateway = ApiGateway_1 = class ApiGateway {
|
|
|
186
186
|
parameters: validatedParameters,
|
|
187
187
|
body,
|
|
188
188
|
request: context.request,
|
|
189
|
-
async
|
|
189
|
+
tryGetToken: async () => {
|
|
190
190
|
return await requestTokenProvider.tryGetToken(requestContext);
|
|
191
191
|
},
|
|
192
|
-
async
|
|
192
|
+
getToken: async () => {
|
|
193
193
|
return await requestTokenProvider.getToken(requestContext);
|
|
194
194
|
},
|
|
195
|
-
async
|
|
196
|
-
const token = await
|
|
195
|
+
getAuditor: async () => {
|
|
196
|
+
const token = await requestContext.tryGetToken();
|
|
197
197
|
return auditor.fork(context.api.resource)
|
|
198
198
|
.withCorrelation()
|
|
199
199
|
.with({
|