Why does findOrCreateUser promise to return a user object?

66 views Asked by At

The findOrCreateUser function expects a user object returned. Why is this? What does it do with it?

Does it merely read and store the user's id for later reference?

Also, why doesn't it have a callback? Otherwise isn't it going to block whilst the code goes to the database?

1

There are 1 answers

1
Julian H. Lam On

My guess is findOrCreateUser is pseudo-code, so you can define your own method to be chained in everyauth's process.