Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Update clock tolerance for prototype & update accept header
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaansyed committed Sep 8, 2023
1 parent e569f8a commit 3f38d41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/auth/oauth/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ export function tokenExchange(config: ConfigInterface) {
path: '/admin/oauth/access_token',
type: DataType.JSON,
data: body,
extraHeaders: {
Accept: 'application/json',
},
};
const cleanShop = sanitizeShop(config)(shop, true)!;

Expand Down
2 changes: 1 addition & 1 deletion lib/session/decode-session-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {getHMACKey} from '../utils/get-hmac-key';

import {JwtPayload} from './types';

const JWT_PERMITTED_CLOCK_TOLERANCE = 10;
const JWT_PERMITTED_CLOCK_TOLERANCE = 1;

export interface DecodeSessionTokenOptions {
checkAudience?: boolean;
Expand Down

0 comments on commit 3f38d41

Please sign in to comment.