Profile on registration
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:
- Register
- Authenticate
- 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.
@nmaro can you help us with this ?