Auth Service
HomeAuth Service
Api Reference
  • Authentication
  • File Controller
  • User FCM Token
  • User Basic Info
Changelog Release
HomeAuth Service
Api Reference
  • Authentication
  • File Controller
  • User FCM Token
  • User Basic Info
Changelog Release
  1. User
  • Introduction
  • Changelog Release
  • Local Development
  • Authentication
    • adminRegister
      POST
    • checkEmail
      POST
    • sendEmailVerification
      GET
    • verifyEmail
      POST
    • login
      POST
    • login
      POST
    • logout
      POST
    • sendRecoverPassword
      GET
    • recoverPassword
      POST
    • refreshToken
      POST
    • register
      POST
  • file-controller
    • streamPrivateData
      GET
  • internal-controller
    • getUserFcmTokenByUserId
    • getUserIntro
  • User
    • facebookCallbackUserInfo
      GET
    • updateUserAccount
      POST
    • deleteAllSessionOfUser
      DELETE
    • getUserBasicInfo
      GET
    • getUserIntro
      GET
    • updateUserIntro
      POST
    • testGetUserFromFirebaseByEmail
      GET
    • testGetUserFromFirebaseNoPassword
      GET
    • testGetUserFromFirebasePassword
      GET
    • getProfilePicture
      GET
    • storeUserFcmToken
      POST
    • updateFeedbackAskdoctor
      GET
    • updateUserIntroV2
      POST
  1. User

deleteAllSessionOfUser

DELETE
/users/delete/{userId}/sessions
User

Request

Path Params
userId
string 
required
userId

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE '/users/delete//sessions'

Responses

🟢200OK
application/json
Body
array of:
created_at
string <date-time>
optional
deleted_at
string <date-time>
optional
deviceName
string 
optional
deviceToken
string 
optional
deviceType
string 
optional
id
string 
optional
token
string 
optional
updated_at
string <date-time>
optional
usedAt
string <date-time>
optional
user
object (User) 
optional
createdAt
string <date-time>
optional
dateOfBirth
string <date-time>
optional
deletedAt
string <date-time>
optional
email
string 
optional
emailVerificationCode
string 
optional
emailVerified
boolean 
optional
fcmToken
string 
optional
feedbackAskDoctor
boolean 
optional
id
string 
optional
image
object (Image) 
optional
initialHeight
number <double>
optional
initialWeight
number <double>
optional
isBannedFromCommunity
boolean 
optional
isRegisterFirstBaby
boolean 
optional
lastLogout
string <date-time>
optional
measurementDate
string <date-time>
optional
name
string 
optional
phoneNumber
string 
optional
phoneNumberVerified
boolean 
optional
pregnancyCount
integer <int32>
optional
provider
string 
optional
registerFirstBaby
boolean 
optional
role
string 
optional
sessions
array[object (UserSession) {11}] 
optional
updatedAt
string <date-time>
optional
version
integer <int32>
optional
Example
[
    {
        "created_at": "2019-08-24T14:15:22Z",
        "deleted_at": "2019-08-24T14:15:22Z",
        "deviceName": "string",
        "deviceToken": "string",
        "deviceType": "string",
        "id": "string",
        "token": "string",
        "updated_at": "2019-08-24T14:15:22Z",
        "usedAt": "2019-08-24T14:15:22Z",
        "user": {
            "createdAt": "2019-08-24T14:15:22Z",
            "dateOfBirth": "2019-08-24T14:15:22Z",
            "deletedAt": "2019-08-24T14:15:22Z",
            "email": "string",
            "emailVerificationCode": "string",
            "emailVerified": true,
            "fcmToken": "string",
            "feedbackAskDoctor": true,
            "id": "string",
            "image": {
                "created_at": "2019-08-24T14:15:22Z",
                "deleted": true,
                "id": 0,
                "longName": "string",
                "name": "string",
                "privateFile": true,
                "updated_at": "2019-08-24T14:15:22Z",
                "url": "string",
                "user": {},
                "userId": "string"
            },
            "initialHeight": 0,
            "initialWeight": 0,
            "isBannedFromCommunity": true,
            "isRegisterFirstBaby": true,
            "lastLogout": "2019-08-24T14:15:22Z",
            "measurementDate": "2019-08-24T14:15:22Z",
            "name": "string",
            "phoneNumber": "string",
            "phoneNumberVerified": true,
            "pregnancyCount": 0,
            "provider": "string",
            "registerFirstBaby": true,
            "role": "string",
            "sessions": [
                {}
            ],
            "updatedAt": "2019-08-24T14:15:22Z"
        },
        "version": 0
    }
]
🟠400Bad Request
🟠401Unauthorized
🔴500Internal Server Error
Modified at 2023-01-25 06:06:06
Previous
updateUserAccount
Next
getUserBasicInfo
Built with