Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

how to disable service for external usage in version 1.0 #410

Closed
chuan137 opened this issue Jan 28, 2017 · 2 comments
Closed

how to disable service for external usage in version 1.0 #410

chuan137 opened this issue Jan 28, 2017 · 2 comments

Comments

@chuan137
Copy link

There used to be a disable hook in version 0.7. And I can't find it in the legacy hooks package. What is then the standard method for this functionality?

@daffl
Copy link
Member

daffl commented Jan 28, 2017

The disable hook is not part of feathers-authentication and can still be used the same way through the feathers-hooks-commonpackage.

const commonHooks = require('feathers-hooks-common');

const disableExternal = commonHooks.disable('external');

@chuan137
Copy link
Author

I see, I was looking for it in the feathers-legacy-authentication-hooks package.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants