Versions Compared

Key

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

...

Changes in intl-users-service

  1. Create block user endpoint

Expand
titleintl-userusers-service
  1. Create block user endpoint

    1. Endpoint: POST /api/v1/users/block-user/{cognitoId}

    2. Add isBlocked field to user details base interface

    3. Use UpdateService to set is blocked to true

  2. Create unblock user endpoint

...

title
Expand
intl-user-service
    1. Endpoint: POST /api/v1/users/unblock-user/{cognitoId}

    2. Use UpdateService to set is blocked to false

  1. Prevent blocked users from signing in

...

title
Expand
intl-user-service
    1. Create UserBlockedError apollo error

(ex:)
    1. Add isBlocked validation in the listed resolvers:

      • createOTP

      • createLoginOTP

      • signInJWT

      • socialLogin

    2. User not found validation for reference

Changes in intl-packages

Expand
titleintl-packates/packages/user
  1. Add isBlocked to userDetails type

  2. Create method to block user

    1. Should use axios to trigger a request to user service

  3. Create method to unblock user

    1. Should use axios to trigger a request to user service

Changes in intl-whitelable-graphql

Expand
titleintl-whitelable-graphql
  1. Add isBlocked to userDetails type

Changes in intl-whitelable-app

...