disconnect Device

@Modifying(clearAutomatically = true )
@Query(value = ""DELETE FROM " + USER_DEVICES_KEY + _WHERE_ + USER_IDENTIFIER_KEY + "=:" + USER_IDENTIFIER_KEY + " AND " + DEVICE_IDENTIFIER_KEY + "=:" + DEVICE_IDENTIFIER_KEY", nativeQuery = true )
abstract fun disconnectDevice(@Param(value = "user_id") userId: String, @Param(value = ConstantsKt.DEVICE_IDENTIFIER_KEY) deviceId: String)

Query used to disconnect a device from the session

Parameters

userId

The identifier of the user

deviceId

The identifier of the device