-
Notifications
You must be signed in to change notification settings - Fork 58
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
Social Authentication SQL parse error with Knex #68
Comments
Hello, I have got an idea while sleeping, then I try it: 'use strict'
// src/services/user/hooks/google-auth.js
//
// Use this hook to manipulate incoming or outgoing data.
// For more information on hooks see: http://docs.feathersjs.com/hooks/readme.html
const defaults = {}
module.exports = function (options) {
options = Object.assign({}, defaults, options)
return function (hook) {
if (hook.data.google) {
// convert JSON object to string
hook.data.google = JSON.stringify(hook.data.google)
}
}
} This hook ( I let this issue opened, I think there is action to do here, a new comer to FeathersJS shall not have to debug his app. At least giving the users schema table? Any other suggestion? Thanks. |
The hook is a good idea. Once we finalize the next version of Feathers authentication we'll make sure to document how it should work with all official database adapters. |
We have some pretty big changes coming in feathersjs-ecosystem/authentication#336 that will allow to customize the response. I am going to close this issue since we are now keeping track of the changes necessary for this in the feathers-authentication repository. |
Hello,
I try to setup Feather Authentication with the Google provider.
I encounter many difficulties as there is no enough documentation with
feathers-knex
. But for this one I think something goes wrong :I want to get authenticated by Google by going to this route:
/auth/google
.I encounter this error:
{ my google data }
is something like :So, this request should work fine but does not work:
I execute this in with
mysql
and theupdate
action is executed :1 row affected. (Query took 0.0040 seconds.)
Here's my model (should be documented, isn't it?):
The only thing weird in the
{ my google data }
is theetag
property, I don't know what it is...Thanks for help.
The text was updated successfully, but these errors were encountered: