The API access token granted when doing the core-documents import is only valid for 900 sec (15 minutes). While this is not normally noticeable when only importing a couple documents, an import of all documents can take over an hour to do.
This PR includes the following proposed change(s):
Updated the core-documents importer to set an expiration time when the api access token is gotten.
Added a check that gets a new token if the expiration time has passed
(unrelated) also deleted the migration updateBCMICollectionTypes from a previous PR that has now been deemed unnecessary. This migration was never applied to the production db.
Description
The API access token granted when doing the core-documents import is only valid for 900 sec (15 minutes). While this is not normally noticeable when only importing a couple documents, an import of all documents can take over an hour to do.
This PR includes the following proposed change(s):