Skip to content

Commit

Permalink
chore(open-payments): remove duplicate fns
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurapov committed Nov 17, 2022
1 parent 1e5a71a commit d9d7f7d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/open-payments/src/client/grant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,3 @@ export const createGrantRoutes = (deps: RouteDeps): GrantRoutes => {
post(deps, { url: args.url, body: args.request }, requestGrantValidator)
}
}

export const isInteractiveGrant = (
grant: InteractiveGrant | NonInteractiveGrant
): grant is InteractiveGrant => !!(grant as InteractiveGrant).interact

export const isNonInteractiveGrant = (
grant: InteractiveGrant | NonInteractiveGrant
): grant is NonInteractiveGrant => !!(grant as NonInteractiveGrant).access_token

0 comments on commit d9d7f7d

Please sign in to comment.