force non-logged-in primo-explore users to authenticate when they are redirected to the services page.
npm install @orbis-cascade/primo-explore-force-services-page-auth
cd primo-explore/custom/MY_VIEW_ID
`
3. If you do not already have a package.json file in this directory, create one:
`
npm init -y
`
4. Install this package:
`
npm install primo-explore-force-services-page-auth --save-dev
`Usage
Once this package is installed, add forceServicesPageAuth as a dependency for your custom module definition.`js
var app = angular.module('viewCustom', ['forceServicesPageAuth'])
`
Note: If you're using the --browserify build option, you will need to first import the module with:`javascript
import 'forceServicesPageAuth';
`