Create block user endpoint Endpoint: POST /api/v1/users/block-user/{cognitoId} Add isBlocked field to user details base interface The field should be returned in GET user endpoint
Use UpdateService to set is blocked to true user notification-service to send email remove user from braze campaings
Create unblock user endpoint Endpoint: POST /api/v1/users/unblock-user/{cognitoId} Use UpdateService to set is blocked to false user notification-service to send email return user to braze campaings
Prevent blocked users from signing in Create UserBlockedError apollo error Add isBlocked validation in the listed resolvers: createOTP createLoginOTP signInJWT socialLogin
User not found validation for reference
|