Skip to content

Commit

Permalink
Update auth.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
K0IN committed Jul 22, 2023
1 parent c160d96 commit 5478caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/backend/middleware/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function validateDeviceSecret<CTX extends RouterContext<A, B, C>, A
}


export async function validatePushSecret<CTX extends RouterContext<A, B, C>, A extends string, B extends RouteParams<A>, C extends State>(context: CTX, next: () => Promise<unknown>) {
export function validatePushSecret<CTX extends RouterContext<A, B, C>, A extends string, B extends RouteParams<A>, C extends State>(context: CTX, next: () => Promise<unknown>) {
const { sendkey } = context.state;
const authHeader = context.request.headers.get('authorization');
if (!sendkey || validateAuthHeader(authHeader, sendkey)) {
Expand Down

0 comments on commit 5478caa

Please sign in to comment.