Skip to content

Commit

Permalink
feat: support square sandbox oauth (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulkr authored Jul 2, 2024
1 parent b5f232d commit fd46f59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const init = async ({ body }: DataObject): Promise<OAuthResponse> => {
expiresIn: Math.floor((await convertToTimestamp(expires_at) - (new Date().getTime())) / 1000),
tokenType: token_type === "bearer" ? "Bearer" : token_type,
meta: {
baseURL,
merchantId: merchant_id,
shortLived: short_lived
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const refresh = async ({ body }: DataObject): Promise<OAuthResponse> => {
expiresIn: Math.floor((await convertToTimestamp(expiresAt) - new Date().getTime()) / 1000),
tokenType: tokenType === "bearer" ? "Bearer" : tokenType,
meta: {
baseURL,
merchantId,
shortLived
}
Expand Down

0 comments on commit fd46f59

Please sign in to comment.