Shopify / koa-shopify-auth

DEPRECATED Middleware to authenticate a Koa application with Shopify
MIT License
80 stars 63 forks source link

Refactor: Utility function to check AccessMode is Online/Offline #95

Closed akhilmhdh closed 2 years ago

akhilmhdh commented 3 years ago

WHY are these changes introduced?

Fixes #60

Hardcoded checks whether accessMode is online that can cause unnecessary bugs.

WHAT is this pull request doing?

  1. Refactored accessMode checks to a utility function shared by auth module and verify-request module.
  2. Moved utilities functions shared by both into another folder called utilities
  3. Added test for utilities folder.

Type of change

Checklist