Skip to content

Commit

Permalink
Fix order of type parameters to getAuthHeaderBearerToken
Browse files Browse the repository at this point in the history
  • Loading branch information
kamarmack committed Dec 16, 2024
1 parent 7c1f2c1 commit d22251d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/utils/auth/getAuthHeaderBearerToken.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as express from 'express';

export const getAuthHeaderBearerToken = <
TRequestBody,
TResponseBody,
TParams,
TResponseBody,
TRequestBody,
TQuery,
>(
req: express.Request<TRequestBody, TResponseBody, TParams, TQuery>,
req: express.Request<TParams, TResponseBody, TRequestBody, TQuery>,
) => {
const authHeader = req.get('Authorization');
if (!authHeader) throw new Error('No Authorization header');
Expand Down

0 comments on commit d22251d

Please sign in to comment.