Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

Projects
None yet
2 participants
@chuan137
Copy link

chuan137 commented Jan 28, 2017

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

This comment has been minimized.

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

This comment has been minimized.

Copy link
Author

chuan137 commented Jan 29, 2017

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

@chuan137 chuan137 closed this Jan 29, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.