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

0.8.0 beta 1 bug - this is not defined #315

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

0.8.0 beta 1 bug - this is not defined #315

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

Comments

@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
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant