feathersjs / docs

[MOVED] Legacy Feathers documentation
https://crow.docs.feathersjs.com/
MIT License
242 stars 532 forks source link

Change storageKey value to feathers-jwt in example #1539

Closed olosegres closed 2 years ago

olosegres commented 3 years ago

I was just trying to run the code with ra-data-feathers but it didn't work. After debugging, I discovered that the @feathersjs/authentication-client setup script that I copy/paste from this doc is using a different field name.

auth is used in the docs of @feathersjs/authentication-client, in the library itself default is feathers-jwt, and token in the ra-data-feathers. it's a complete mess :(

Since new users often run the code by copying examples from the documentation, in order not to create unnecessary obstacles and problems for other new users, I think it will be useful to add this fix (I also made a request to the ra-data-feathers to correct the value to the same).