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

TypeError: Cannot read property '_strategy' of undefined #632

Closed
joodroid opened this Issue Jan 24, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@joodroid
Copy link

joodroid commented Jan 24, 2018

Steps to reproduce

  • Tell us what broke. The more detailed the better.

error: TypeError: Cannot read property '_strategy' of undefined
at Object. (/Users/rizkyaisis/Documents/GitFile/aspirasi-services/node_modules/@feathersjs/authentication/lib/hooks/authenticate.js:40:23)
at promise.then.hookObject (/Users/rizkyaisis/Documents/GitFile/aspirasi-services/node_modules/@feathersjs/commons/lib/hooks.js:174:73)
at
error: TypeError: Cannot read property '_strategy' of undefined
at Object. (/Users/rizkyaisis/Documents/GitFile/aspirasi-services/node_modules/@feathersjs/authentication/lib/hooks/authenticate.js:40:23)
at promise.then.hookObject (/Users/rizkyaisis/Documents/GitFile/aspirasi-services/node_modules/@feathersjs/commons/lib/hooks.js:174:73)
at

  • If you can, please create a simple example that reproduces the issue and link to a gist, jsbin, repo, etc.

Expected behavior

Succesful authentication

Actual behavior

Register and Login won't run / nothing happen after button clicked

System configuration

Run Android Studio, React Native, Feathers JS

Tell us about the applicable parts of your setup.

React Native Version:
react-native : version 0.5.2

Module Loader:

@daffl

This comment has been minimized.

Copy link
Member

daffl commented Jan 24, 2018

Did you configure @feathersjs/authentication properly?

@joodroid

This comment has been minimized.

Copy link
Author

joodroid commented Jan 24, 2018

Thank you daffl,

I've figured the case on https://docs.feathersjs.com/api/authentication/server.html

@joodroid joodroid closed this Jan 24, 2018

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.