You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not using options.anonymous to determine if the user is created by your package, because the documentation for Accounts.onCreateUser warns that options can come from the client and shouldn't be trusted. Perhaps the package should add something to the user doc to securely indicate that the account is an anonymous account. Alternatively, it could provide a AccountsAnonymous.onCreateUser hook which only runs for anonymous accounts.
Then again, I might be giving too much weight to my use case and the current behaviour might be sufficient. In that case, an example like mine in the README might be nice.
I would love to be able to add a server side hook for logging in. Ideally it would be able to modify the user doc that gets created for the new user.
My use case is to generate a random nickname for each anonymous user.
The text was updated successfully, but these errors were encountered: