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

0.8.0 beta 1 bug - this is not defined #315

Closed
bertho-zero opened this Issue Oct 15, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@bertho-zero
Copy link
Contributor

bertho-zero commented Oct 15, 2016

I have this error when I use oauth authentication:

TypeError: Cannot read property '_tokenService' of undefined

   - oauth2.js:195 
     [react-redux-universal-hot-example]/[feathers-authentication]/lib/services/oauth2.js:195:22

   - authenticate.js:201 FacebookTokenStrategy.strategy.success
     [react-redux-universal-hot-example]/[passport]/lib/middleware/authenticate.js:201:18

   - index.js:102 verified
     [react-redux-universal-hot-example]/[passport-facebook-token]/lib/index.js:102:25

   - oauth2.js:120 
     [react-redux-universal-hot-example]/[feathers-authentication]/lib/services/oauth2.js:120:16

   - es6.promise.js:87 run
     [react-redux-universal-hot-example]/[core-js]/modules/es6.promise.js:87:22

   - es6.promise.js:100 
     [react-redux-universal-hot-example]/[core-js]/modules/es6.promise.js:100:28

   - _microtask.js:18 flush
     [react-redux-universal-hot-example]/[core-js]/modules/_microtask.js:18:9

   - next_tick.js:67 _combinedTickCallback
     internal/process/next_tick.js:67:7

   - next_tick.js:98 process._tickCallback
     internal/process/next_tick.js:98:9

If I add a var that = this in lib/services/oauth2.js it works.

@bertho-zero bertho-zero changed the title beta 0.1 bug - this is not defined beta 8.1 bug - this is not defined Oct 15, 2016

@bertho-zero bertho-zero changed the title beta 8.1 bug - this is not defined beta 0.8.1 bug - this is not defined Oct 15, 2016

@bertho-zero bertho-zero changed the title beta 0.8.1 bug - this is not defined 0.8 beta 1 bug - this is not defined Oct 15, 2016

@bertho-zero bertho-zero changed the title 0.8 beta 1 bug - this is not defined 0.8.0 beta 1 bug - this is not defined Oct 15, 2016

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.