Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Search active invite

Search pending invite in authdb.invites using requested { id }

...

If invite record found but expired - return EXPIRED

Otherwise - create user

Create user

Insert new entity into authdb.users

AttributeSourceDescription
id
Generated
emailauthdb.invites.email
passwordbcrypt($.password)BCrypt hash


Delete invite

Delete entity from authdb.invites using requested { id }