ooth icon indicating copy to clipboard operation
ooth copied to clipboard

Profile on registration

Open dfliess opened this issue 6 years ago • 1 comments

I understand that to fill a user profile when registering with local strategy I have only one approach:

The ooth client must do the following:

  1. Register
  2. Authenticate
  3. Update profile

I was thinking on Listen on the server for 'local', 'register' event and update the created event, but on that event I do not have the request that the client made. Also tried to create a new endpoint on our API but there is no way to get new user id with await ooth.callMethod('local', 'register', { email, password }); Any suggestions ?

It seems to be more difficult when someone registers with any oauth provider and you want to fill the user profile with the name for example, the ooth-google only sends the email and not the whole payload, not even the token so that we could do the query.

dfliess avatar May 22 '19 18:05 dfliess

@nmaro can you help us with this ?

dfliess avatar Aug 27 '19 21:08 dfliess