File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/middleware-token/src Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ export const tokenMiddleware =
22
22
options : TokenResolvedConfig
23
23
) : FinalizeRequestMiddleware < Input , Output > =>
24
24
( next : FinalizeHandler < Input , Output > ) : FinalizeHandler < Input , Output > =>
25
- async function ( args : FinalizeHandlerArguments < Input > ) : Promise < FinalizeHandlerOutput < Output > > {
26
- if ( ! HttpRequest . isInstance ( args . request ) ) return next ( args ) ;
25
+ async ( args : FinalizeHandlerArguments < Input > ) : Promise < FinalizeHandlerOutput < Output > > = > {
26
+ if ( ! HttpRequest . isInstance ( args . request ) ) return next ( args ) ;
27
27
28
- const token = await options . token ( ) ;
29
- args . request . headers [ "Authorization" ] = `Bearer ${ token . token } ` ;
28
+ const token = await options . token ( ) ;
29
+ args . request . headers [ "Authorization" ] = `Bearer ${ token . token } ` ;
30
30
31
- return next ( args ) ;
32
- } ;
31
+ return next ( args ) ;
32
+ } ;
You can’t perform that action at this time.
0 commit comments