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 }

  • authdb.invites.id == { id }
  • authdb.invites.expires_at now ()

If invite record not found - return NOT_FOUND error

If invite record found but expired - return EXPIRED

Otherwise - create user

Create user

Insert new entity into authdb.users

AttributeSourceDescription
id

Delete invite

...


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


Delete invite

Delete entity from authdb.invites using requested { id }